About 84,900 results
Open links in new tab
  1. Validating with an XML schema in Python - Stack Overflow

    Jul 12, 2016 · I have an XML file and an XML schema in another file and I'd like to validate that my XML file adheres to the schema. How do I do this in Python? I'd prefer something using the …

  2. What Python accessible tools can you use to generate XSD from …

    Nov 22, 2016 · It should be possible to do what I want and access tools like xsd.exe from within a Python program. I would preferred to use something like a Python module as it's easier to …

  3. Can I use the python library 'xmlschema' to create XML …

    Oct 17, 2023 · There are some schema definition files (xsd). They can be read with the library xmlschema. I can use it to validate or convert some existing XML-Documents. That is fine. But …

  4. How to efficiently detect an XML schema without having the entire …

    Dec 4, 2018 · How to efficiently detect an XML schema without having the entire file in python Asked 6 years, 10 months ago Modified 6 years, 9 months ago Viewed 5k times

  5. xml - Parse an XSD file using python - Stack Overflow

    Feb 21, 2019 · I am trying to generate an XML file from a given XML schema. I have been able to do it with pyxb library in python. But the problem is as the XSD gets huge it is impossible to …

  6. Understanding XML and XSD parsing in Python 3 - Stack Overflow

    xmlschema is a Python module to manage XML Schemas or validate XML instances to the XSD. Example to validate XML documents from URL against the XML Schema using Python3.

  7. How can I make Python's ElementTree enforce XML schema?

    Jul 14, 2014 · Suppose I wish to parse an XML document, and its schema dictates that a given element can only occur once. How do I make sure that an exception gets raised if the element …

  8. Converting XML to JSON using Python? - Stack Overflow

    Oct 10, 2008 · That being said, Python's standard library has several modules for parsing XML (including DOM, SAX, and ElementTree). As of Python 2.6, support for converting Python data …

  9. xml - How to convert XSD to Python Class - Stack Overflow

    Jul 2, 2009 · I just want to know if there is a program that can convert an XSD file to a Python class as JAXB does for Java?

  10. create specific XML file from XSD file with python

    Oct 8, 2019 · I have an existing xsd schema, and need to create (hopefully with Python) an XML file with some specific inputs. What is the best way to do it? I tried Element Tree and …