Re: [xml] how to validate with SAX (Reader) against xmlschema



On Wed, Jun 11, 2003 at 11:38:39PM +0200, Oussorov E. wrote:
Hallo,

how can i validate an XML-Document using Reader-interface
against the XML-Schema, without giving first the XML-Schema file.

  Very confusing. You say SAX, and Reader. It's not the same.
There is no validation availbale at the SAX level currently.
libxml2 recent version allow DTD or Relax-NG validation using
the xmlReader interface. There is no streaming validation support
for W3C XML Schemas at this point.

The example testSchemas expects first schema then xml-file. But
the parser should take the information where Schema is from the 
XML-Document. How can i do it ?

  The schemas is a different instance from the socument validated
I don't see why you think they can be the same.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
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]