[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24496] New: XML Parser fails to handle a Properties XML f
From: |
gnu_andrew at member dot fsf dot org |
Subject: |
[Bug classpath/24496] New: XML Parser fails to handle a Properties XML file |
Date: |
23 Oct 2005 22:13:46 -0000 |
The output from java.util.Properties in XML format references the following
DTD:
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
The javadoc claims that 'the system URI
(http://java.sun.com/dtd/properties.dtd) is not accessed when exporting or
importing properties', and indeed our parser falls over on it. However, it
still attempts to handle this file even when setValidating is called with a
false value.
java.util.InvalidPropertiesFormatException: Error in parsing XML.
at java.util.Properties.loadFromXML (Properties.java:737)
at TestProperties2.main (TestProperties2.java:11)
Caused by: org.xml.sax.SAXParseException: Illegal processing instruction target
(found "xml")
at gnu.xml.aelfred2.SAXDriver.fatal (SAXDriver.java:1187)
at gnu.xml.aelfred2.XmlParser.error (XmlParser.java:531)
at gnu.xml.aelfred2.XmlParser.parsePI (XmlParser.java:650)
at gnu.xml.aelfred2.XmlParser.parseMarkupdecl (XmlParser.java:1220)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl (XmlParser.java:1152)
at gnu.xml.aelfred2.XmlParser.parseProlog (XmlParser.java:699)
at gnu.xml.aelfred2.XmlParser.parseDocument (XmlParser.java:576)
at gnu.xml.aelfred2.XmlParser.doParse (XmlParser.java:463)
at gnu.xml.aelfred2.SAXDriver.parse (SAXDriver.java:364)
at gnu.xml.aelfred2.XmlReader.parse (XmlReader.java:365)
at java.util.Properties.loadFromXML (Properties.java:733)
...1 more
The DTD begins with comments followed by a <?xml declaration. If these are
removed, leaving only the core DTD, the parsing takes place fine.
--
Summary: XML Parser fails to handle a Properties XML file
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu_andrew at member dot fsf dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24496
- [Bug classpath/24496] New: XML Parser fails to handle a Properties XML file,
gnu_andrew at member dot fsf dot org <=