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=et ree.parse("My.x sd")
xmlschema=etree .XMLSchema(xmls chemadoc)
xmldoc=etree.pa rse("My.XML")
xmlschema.asser tValid(xmldoc)
will my program validate against My.xsd and My1.xsd both ?
I also would like my program to continue validation against the xsd and notstope at the first failure .
my question would be how do i do that in python ?
regards
Hrishy
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=et ree.parse("My.x sd")
xmlschema=etree .XMLSchema(xmls chemadoc)
xmldoc=etree.pa rse("My.XML")
xmlschema.asser tValid(xmldoc)
will my program validate against My.xsd and My1.xsd both ?
I also would like my program to continue validation against the xsd and notstope at the first failure .
my question would be how do i do that in python ?
regards
Hrishy
Comment