Thie Package contains an Libary for XML<-->JSON Conversion for the DCC (Digital Calibration Certificate).
Witch contains an Python Module for the conversion. Aswell as an tornador REST-API Server to remote call this conversion.
## Conversion Rules
0. The XML Document ist converted into a nested dict, containing lists for repatable elements. Repeated elements are determined by there name or by the name of the parent Element. [listDCCElements.json](src/dccXMLJSONConv/data/listDCCElements.json) contains a comprehensive list of the repeated fild names/parent names.
0. The XML Document ist converted into a nested dict, containing lists for repatable elements. Repeated elements are determined by there name or by the name of the parent Element. [schemaTypeCastCache.json]([typeCastDictCreator.py](src/dccXMLJSONConv/data/schemaTypeCastCache.json)) contains a comprehensive list of the repeated fild names/parent names.
1. The actual `string` Conent of an Element is stored as `string` in the `#text` Element of the JSON-Nodes. If the content is an List of strings, the `#list` Element contains the list of elements vastet to float if posible.
2. Since JSON Don't support attributes, all attributes are converted to dict Keys Starting with an @
3. Comments are converted to an adition dict key '@_Comment' containing a list of all comments in the coresonding XML-Element, the order ist preserved. The actual position of the comment is not.