xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Wolfgang Hoschek <whoschek AT lbl.gov>
- To: Wolfgang Hoschek <whoschek AT lbl.gov>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] setInternalDTDSubset
- Date: Fri, 14 Jan 2005 14:53:45 -0800
This is with xerces-2.6.2. Same bugs for JDK 1.5 with its internal xerces. In addition, the JDK 1.4 crimson (OSX) also breaks for
/w3c-xmlconformance/xmltest/valid/sa/090.xml
On Jan 14, 2005, at 2:22 PM, Wolfgang Hoschek wrote:
During tests I've so far found two files where roundtripping of the internal subset breaks due too escaping of quote characters. The files are from the W3C conformance test suite:
w3c-xmlconformance/xmltest/valid/sa/066.xml
w3c-xmlconformance/xmltest/valid/sa/101.xml
Specifically, DocType.setInternalDTDSubset(DocType.getInternalDTDSubset()) fails with an exception.
nu.xom.IllegalDataException: Malformed internal DTD subset: The declaration for the entity "e" must end with '>'.
at nu.xom.Verifier.checkInternalDTDSubset(Unknown Source)
at nu.xom.DocType.setInternalDTDSubset(Unknown Source)
For example here is an input document:
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ENTITY e """>
]>
<doc></doc>
doc.toXML() output:
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ENTITY e """>
]>
<doc />
Any thoughts?
Wolfgang.
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] setInternalDTDSubset,
Wolfgang Hoschek, 01/14/2005
- Re: [XOM-interest] setInternalDTDSubset, Elliotte Harold, 01/14/2005
-
Re: [XOM-interest] setInternalDTDSubset,
Wolfgang Hoschek, 01/14/2005
-
Re: [XOM-interest] setInternalDTDSubset,
Elliotte Harold, 01/14/2005
-
Re: [XOM-interest] setInternalDTDSubset,
Wolfgang Hoschek, 01/14/2005
- Re: [XOM-interest] setInternalDTDSubset, Elliotte Harold, 01/14/2005
- Re: [XOM-interest] setInternalDTDSubset, Elliotte Harold, 01/14/2005
- Re: [XOM-interest] setInternalDTDSubset, Elliotte Harold, 01/14/2005
-
Re: [XOM-interest] setInternalDTDSubset,
Wolfgang Hoschek, 01/14/2005
- Re: [XOM-interest] setInternalDTDSubset, Elliotte Harold, 01/14/2005
-
Re: [XOM-interest] setInternalDTDSubset,
Elliotte Harold, 01/14/2005
Archive powered by MHonArc 2.6.24.