• 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
NSXMLDocument and relative DTD?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLDocument and relative DTD?


  • Subject: NSXMLDocument and relative DTD?
  • From: Alexander von Below <email@hidden>
  • Date: Mon, 02 Jun 2008 16:02:01 +0200

Hello Cocoa Pros,

I am loading an NSXMLDocument from a webserver, and it contians a correct relative DTD, i.e. "relative to the location of the resource within which the entity declaration occurs"(1).

When validating the document, either on initWithURL or explicitly, validation fails with

Error Domain=NSXMLParserErrorDomain Code=1549 UserInfo=0x14845c70 "Line 2: failed to load external entity "foo/bar/faz.dtd"

(where the dtd exists at http://example.com/foo/bar/faz.dtd, and the document itself at http://example.com/foobar.xml). If I create a local copy of the xml file containing an absolute URI for the DTD, the document can be validated.

Any hints would be appreciated!

Thanks

Alex


1) http://www.w3.org/TR/2006/REC-xml-20060816/#NT-ExternalID _______________________________________________

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


  • Follow-Ups:
    • Re: NSXMLDocument and relative DTD?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Advanced Mac OS X Bootcamp
  • Next by Date: Re: Core Data "entity required" error
  • Previous by thread: Re: Main window disappears. Sometimes.
  • Next by thread: Re: NSXMLDocument and relative DTD?
  • Index(es):
    • Date
    • Thread