[xml] how to validate xml with external schema

Hi everybody,
does anybody know the way, how to validate XML document with XML schema
given as a parametr using libxml2? I know how to validate XML document
which includes schema adress, viz. 
But I need some functionality like:

int validate (xml_document, xsd_schema);

I have to validate it in my application, so I can not use xmllint. I
would expact using libxml2 function xmlSchemaNewValidCtxt(schema), but
as I read this function should be called with NULL parametr.

Thanks for help,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]