Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] setInternalDTDSubset

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: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] setInternalDTDSubset
  • Date: Fri, 14 Jan 2005 17:48:05 -0500

Wolfgang Hoschek wrote:


For example here is an input document:

<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ENTITY e "&#34;">
]>
<doc></doc>

doc.toXML() output:

<?xml version="1.0"?>
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ENTITY e """>
]>
<doc />

Any thoughts?


That's certainly malformed. It may perhaps be a parser bug. I'll have to check. If it isn't, then I'd say that's the most major bug uncovered since XOM 1.0 (irrespective of the setInternalDTDSubset issue). I've found a few others in nu.xom.tests but nothing else in the core API. I'll write a unit test and play with it.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page