Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
|
||||
XML Schema based converter class for Abdera convention.
ref: http://wiki.open311.org/JSON_and_XML_Conversion/#the-abdera-convention ref: https://cwiki.apache.org/confluence/display/ABDERA/JSON+Serialization
:param namespaces: Map from namespace prefixes to URI. :param dict_class: Dictionary class to use for decoded data. Default is `dict` for Python 3.6+ or `OrderedDict` for previous versions. :param list_class: List class to use for decoded data. Default is `list`.
Instance Methods | |
Inherited from Inherited from |
Method Details |
|
|
The converter can ignore some kind of XML data during decoding.
|
Converts a decoded element data to a data structure. :param data: ElementData instance decoded from an Element node. :param xsd_element: the `XsdElement` associated to decoded the data. :param level: the level related to the decoding process (0 means the root). :return: a data structure containing the decoded data.
|
Extracts XML decoded data from a data structure for encoding into an ElementTree. :param obj: the decoded object. :param xsd_element: the `XsdElement` associated to the decoded data structure. :param level: the level related to the encoding process (0 means the root). :return: an ElementData instance.
|
|
Builds an ElementTree's Element using arguments and the element class and the indent spacing stored in the converter instance. :param tag: the Element tag string. :param text: the Element text. :param children: the list of Element children/subelements. :param attrib: a dictionary with Element attributes. :param level: the level related to the encoding process (0 means the root). :return: an instance of the Element class setted for the converter instance.
|
The format of decoded data is without loss of quality. Only losslessly formats can be always used to encode to an XML data that is strictly conformant to the schema.
|
Creates an iterator for converting decoded attributes to a data structure with appropriate prefixes. If the instance has a not-empty map of namespaces registers the mapped URIs and prefixes. :param attributes: A sequence or an iterator of couples with the name of the attribute and the decoded value. Default is `None` (for `simpleType` elements, that don't have attributes).
|
A generator function for converting decoded content to a data structure. If the instance has a not-empty map of namespaces registers the mapped URIs and prefixes. :param content: A sequence or an iterator of tuples with the name of the element, the decoded value and the `XsdElement` instance associated.
|
Home | Top | ← | → | Overview | Module | Class | Index | Help |
|
About |
---|
Copyright(C) 2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez | https://arnocan.wordpress.com |
Generated by Epydoc 4.0.4 / Python-3.8 / fedora27 on Fri Dec 13 15:25:25 2019 | http://epydoc.sourceforge.net |