URL:
<http://savannah.gnu.org/bugs/?32153>
Summary: NSXMLParser does not correctly handle inline DTD
Project: GNUstep
Submitted by: wlux
Submitted on: Mo 17 Jan 2011 14:45:17 GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The new NSXMLParser implementation sends tags in inline DTDs as start tags to
the parser delegate. This breaks existing parsers, which may receive
unexpected (for them) tags.
Test case attach below. Compile parserTest.m with
gcc `gnustep-config --objc-flags` parserTest.m -o parserTest
`gnustep-config --base-libs`
then run it with the attached sample XML file
./parserTest ct.xml
The output begins with
<!ATTLIST>
<!ELEMENT>
<!ATTLIST>
<!ELEMENT>
<!ELEMENT>
<cTree>
<function>
but should really start with the cTree tag. This is the case for both Apple's
implementation and the libxml based implementation of GNUstep's NSXMLParser.
For reference, the expected output (as computed by running the sample on OS
X) is in file ct.out.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mo 17 Jan 2011 14:45:17 GMT Name: parserTest.m Size: 2kB By: wlux
<http://savannah.gnu.org/bugs/download.php?file_id=22425>
-------------------------------------------------------
Date: Mo 17 Jan 2011 14:45:17 GMT Name: ct.xml Size: 632B By: wlux
<http://savannah.gnu.org/bugs/download.php?file_id=22426>
-------------------------------------------------------
Date: Mo 17 Jan 2011 14:45:17 GMT Name: ct.out Size: 281B By: wlux
<http://savannah.gnu.org/bugs/download.php?file_id=22427>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32153>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep