Re: lxml and schema validation

2008-10-03 Thread Stefan Behnel
hrishy wrote: > I am validating a xmlfile against a xsd (My.xsd) but i notice that the xsd > has a include which includes another xsd (My1.xsd) > > I have written a simple program that to validate this > > from lxml import etree > xmlschemadoc=etree.parse("My.xsd") > xmlschema=etree.XMLSchema(xm

lxml and schema validation

2008-10-03 Thread hrishy
Hi I am validating a xmlfile against a xsd (My.xsd) but i notice that the xsd has a include which includes another xsd (My1.xsd) I have written a simple program that to validate this from lxml import etree xmlschemadoc=etree.parse("My.xsd") xmlschema=etree.XMLSchema(xmlschemadoc) xmldoc=etree.p