Re: [xml] TextReader schema validator
- From: Daniel Veillard <veillard redhat com>
- To: Jovan Kostovski <chombium gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] TextReader schema validator
- Date: Fri, 16 Mar 2007 08:56:47 -0400
On Fri, Mar 16, 2007 at 11:33:51AM +0100, Jovan Kostovski wrote:
Hi,
I've created a XML schema validator
based on reader1.c example by
adding the xmlTextReaderSchemaValidate function.
Everything works fine, but xmlTextReaderSchemaValidate
as a result returns 0 if the schema can be activated.
How can I return a message like the one in xmllinit.c.
Something like "test.xml validates"?
I don't understand what you're asking for. If that's
the status of the validation, obviously you can't get it at
the intial phase but only when parsing has finished, see:
http://xmlsoft.org/html/libxml-xmlreader.html#xmlTextReaderIsValid
and
http://xmlsoft.org/xmlreader.html#L1142
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]