Calling XMLSchema with nonet
![](https://secure.gravatar.com/avatar/d6b99845e4107fbd95f61125b7eb66ad.jpg?s=120&d=mm&r=g)
March 4, 2024
4:44 a.m.
I know how to set up the parser to not download entities. But I have not found a way to stop XMLCatalog from downloading other xsd's than the root xsd. from lxml import etree parser = etree.XMLParser(no_network=True) xsddoc = etree.parse('schemas/ler/2.0_ler.xsd',parser=parser) xsd = etree.XMLSchema(xsddoc) The above code will recursively download the XSD's imported in 2.0_ler.xsd. I played around with xmllint and I believe that if XML_PARSE_NONET is True, if will not download those. But how do I set that option for the context in which XMLSchema runs? Sincerely, Thomas
352
Age (days ago)
352
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thomas Larsen Wessel