Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] dtd problems

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: luca <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] dtd problems
  • Date: Mon, 20 Sep 2004 10:00:35 -0400

luca wrote:


Posting the code for the archive (or in case someone has a smarter
way to suggest):

int dtd_idx_wml = mark_up.indexOf("<!DOCTYPE wml PUBLIC");
int dtd_idx_html = mark_up.indexOf("<!DOCTYPE html PUBLIC");


With WML, this hack will probably work. With HTML, however, the builder's going to blow up as soon as it sees an &nbsp;. &copy; &eacute;, or any other entity reference except for the five predefined XML entity references.

--
Elliotte Rusty Harold
elharo AT metalab.unc.edu




Archive powered by MHonArc 2.6.24.

Top of Page