Choose an XML converter convention
masterThe xmlschema library uses converter classes to handle the decoding (XML to intermediate data) and encoding (intermediate data to XML) of XML data. Because XML contains metadata like attributes and namespaces, converters apply specific naming conventions to represent these in formats like JSON.
Predefined Converters
Depending on your target data format or preferred convention, you can use one of the following derived classes:
xmlschema.ParkerConverter: Implements the Parker convention.xmlschema.BadgerFishConverter: Implements the BadgerFish convention.xmlschema.AbderaConverter: Implements the Apache Abdera project convention.xmlschema.JsonMLConverter: Implements the JsonML (JSON Mark-up Language) convention.xmlschema.UnorderedConverter: Similar to the default converter but performs unordered decoding and encoding.xmlschema.ColumnarConverter: Remaps attributes as child elements in a columnar shape.xmlschema.DataElementConverter: Converts XML to a tree ofxmlschema.DataElementinstances (Element-like objects with decoded values and schema bindings).
Base Class Options
All converters inherit from xmlschema.XMLSchemaConverter. While specific converters may fix certain values, the base class supports options to vary the conversion process, such as force_list and force_dict (though these may be ignored by some predefined converters).