You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
202 B

from lxml import etree
xmlschema_doc = etree.parse('nfse_v202.xsd')
xmlschema = etree.XMLSchema(xmlschema_doc)
xml = etree.parse('funfa.xml')
print(xmlschema.validate(xml))
xmlschema.assertValid(xml)