Re: [xml] xml schema validation
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: Christian HAESSIG <christian haessig ircad u-strasbg fr>
- Cc: xml gnome org
- Subject: Re: [xml] xml schema validation
- Date: Wed, 16 Mar 2005 10:27:41 +0100
Christian HAESSIG wrote:
I have a question concerning the XML schema validation ; Daniel thinks you
can help me.
I have a xml file like this :
<?xml version="1.0" encoding="UTF-8"?>
and I'm trying to validate this xml file using its schema file xinclude.xsd.
The question is : can I, using libxml2, get a xmlSchemaValidCtxtPtr from
the xml file directly ( so, is libxml2 able to extract the schema file from
a xml file and build a xmlSchemaValidCtxtPtr object ? )
I was already thinking of parsing the xml file until I fall on the right
attribute, extract the schema file, and build the xmlSchemaValidCtxtPtr
object, but perhaps you have a better solution ?
The example for instance driven assembling of schemata can be found in:
] [Thread Prev