You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/scenarios/xml.rst
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -81,3 +81,30 @@ and then you can access elements, attributes, and values like this:
81
81
xmltodict also lets you roundtrip back to XML with the unparse function,
82
82
has a streaming mode suitable for handling files that don't fit in memory,
83
83
and supports XML namespaces.
84
+
85
+
**********
86
+
xmlschema
87
+
**********
88
+
89
+
`xmlschema<https://github.com/sissaschool/xmlschema>`_ provides support for using XSD-Schemas in Python.
90
+
Unlike other XML libraries, automatic type parsing is available, so f.e. if the schema defines an element to be of type ``int``, the parsed ``dict`` will contain also an ``int`` value for that element.
91
+
Moreover the library supports automatic and explicit validation of XML documents against a schema.