[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug xml/24496] XML Parser fails to handle a Properties XML file
From: |
dog at gnu dot org |
Subject: |
[Bug xml/24496] XML Parser fails to handle a Properties XML file |
Date: |
15 Dec 2005 14:39:30 -0000 |
------- Comment #6 from dog at gnu dot org 2005-12-15 14:39 -------
Let me explain a little further. In the DTD there is a comment, then some
space, then the "<?xml". XML says that the TextDecl of external parsed entities
must be the first construct in the entity (the first characters, after BOM
detection). Therefore the "<?xml" does not signal a TextDecl but a PI, and the
definition of a PI states that it cannot have "xml" (irrespective of case) as
its target.
This is a bug, but not in our XML parsing code. Sun's DTD is not well-formed. I
have rewritten the loadFromXML method to use StAX instead of SAX; since StAX
supports a property by which we can ignore external entities, we can ensure
that the not-well-formed DTD is not read. This patch includes code to check the
validity of the properties XML.
--
dog at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24496
- [Bug xml/24496] XML Parser fails to handle a Properties XML file,
dog at gnu dot org <=