Has anyone had success using NSXMLDocument to validate XML using an XML Schema document? I can parse and process my XML file fine as long as I don't validate, but when I call validateAndReturnError: I'm getting back the error "xmlSchemaParse: could not load ''.

As far as I can tell, the schema URL in my XML document is fine (I can access it using Safari), and I've validated the same XML document using the same schema URL using XML Nanny. So...I can't figure out why NSXMLDocument can't find my schema. Heck, I've even grabbed the schema URL from the NSXMLDocument root element (by getting the attribute "xsi:schemaLocation") and checked that I can access the URL directly using NSString stringWithContentsOfURL:.

Does NSXMLDocument actually use the URL specified via xsi:schemaLocation, or do I need to actually put the schema document somewhere else?

        - Leif Harrison
          rexfe...@catsreach.org
          l...@ubermind.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to