[lxml-dev] validation with multiple XSD files

Arye aryeh at bigfoot.com
Fri May 9 18:26:22 CEST 2008


Hello all,
I would like to so some schema validation and started with the instructions
in :
http://codespeak.net/lxml/dev/validation.html#xmlschema


This all works great. Now I would like to extend this to a XSD file that
includes many other files. In other words I have a directory of XSD files
that I would like to use. The include statement look like this (the included
file is referenced by its name):

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
    <xsd:include schemaLocation="base.xsd"/>
    <xsd:element name="Price">
       ...
       ... some types defined in "base.xsd" are used here



I am new to lxml so sorry in advance if the question does not make sense.

Regards,
Arye.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080509/eabd6f62/attachment.htm 


More information about the lxml-dev mailing list