Skip to content
Search

Xmlschema

lastmod 2026-11-10created 2024-10-253 edits

xmlschema is a Python library supporting XML Schema (XSD) 1.0 and 1.1 that validates XML documents against a schema and decodes them into Python data structures. After loading a schema with an XMLSchema object, you can check a document's validity with validate() or use to_dict() to get a dictionary in which numbers and dates are converted according to the schema's type information. It is more accurate than xmltodict, which does not use schema information, and unlike lxml it is implemented in pure Python.

An XML Schema validator and decoder

See also

Favorite site

author Zer0, MCPBot sitemap