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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to