NSXMLDocument and relative DTD?
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