NSXMLParser chokes on DTD declaration
NSXMLParser chokes on DTD declaration
- Subject: NSXMLParser chokes on DTD declaration
- From: Ross Carter <email@hidden>
- Date: Sun, 28 Nov 2010 21:03:40 -0500
If I use NSXMLParser (on 10.6.5) to parse xml data that looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE docData SYSTEM "docData.dtd">
<docData>
[elements omitted]
</docData>
and if I have sent the parser a setShouldResolveExternalEntities:YES message, I would expect the parser delegate message
parser:resolveExternalEntityName:systemID:
to fire, as described in Event-Driven XML Programming Guide. Instead, parser:parseErrorOccurred: gives an error with this description:
Error Domain=NSXMLParserErrorDomain Code=1549 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 1549.)
Where did I go wrong?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden