I have some XML and an XML Schema in a local xsd file. The XML document does not contain any schema information. I want to validate the XML document against the xsd schema file in Cocoa (meaning I'd prefer something NS/CF/libxml based as opposed to an external library).

I can across [xmllint](https://stackoverflow.com/questions/573399/tool-for-xml-xsd-schema-validation), which would probably work, but I was looking for a way to do it without launching an external task.