• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSXMLParser chokes on DTD declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSTask with unzip
  • Next by Date: Re: How to approach to write such an app?
  • Previous by thread: Re: hidden file
  • Next by thread: How to update all views when underlying data changes?
  • Index(es):
    • Date
    • Thread