bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #32153] NSXMLParser does not correctly handle inline DTD


From: Wolfgang Lux
Subject: [bug #32153] NSXMLParser does not correctly handle inline DTD
Date: Mon, 17 Jan 2011 14:45:18 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/531.21.8+(KHTML, like Gecko, Safari/528.16) Version/5.10.3 OmniWeb/622.14.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]