NSXMLParser crashes
NSXMLParser crashes
- Subject: NSXMLParser crashes
- From: Eric Scharff <email@hidden>
- Date: Fri, 4 Jun 2004 14:35:57 -0700 (PDT)
Consider the following XML file:
<?xml version="1.0"?>
<!DOCTYPE project [
<!ELEMENT project (name, ulink+)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT ulink (#PCDATA)>
<!ATTLIST ulink url CDATA #REQUIRED>
<!ENTITY adc "Apple Developer Connection">
]>
<project>
<name>My Project</name>
<ulink url="
http://www.apple.com">Apple Computer</ulink>
<ulink url="
http://developer.apple.com"> &adc; </ulink>
</project>
When I parse this file with NSXMLParser, the parser CRASHES
without throwing an error. It just throws a SIGBUS signal when
parsing.
Note that this has something to do with resolving the internal
entity, but I'm not sure what. It is interesting to note that
my delegate's
-parser:foundInternalEntityDeclarationWithName:value: never gets
called, and the code seems to crash in the DTD (I never get any
calls to
-parser:didStartElement:namespaceURI:qualifiedName:attributes:
either)
I really want use NSXMLParser instead of expat or something
else, but I am very concerned if it CRASHES on perfectly well
formed and valid XML.
What am I doing wrong?
-Eric
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.