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/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
