Re: [xml] libxml + sax + schema validation

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

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


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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