Re: [xml] libxml + sax + schema validation



On Tue, Feb 06, 2007 at 03:33:57PM +0100, Jovan Kostovski wrote:
Hi,

I need to write a sax xml parser that will
validate the contents against a xml schema file.

Writing a sax parser wasn't to hard, but I have no
clue how to implement the schema validation.

Can anyone help me?
Links to some examples would be great

  there is an API to push a schemas validation context on top of
a SAX event, see xmlSchemaValidateStream() use in testSAX() in xmllint.c

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]