From f2f215f286858d533d3b92a3c852c4b58db2eb8d Mon Sep 17 00:00:00 2001 From: Benedikt Seeger <benedikt.seeger@ptb.de> Date: Fri, 22 Nov 2024 11:27:39 +0100 Subject: [PATCH] Version 2.3.2 --- README.md | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9a32692..50139b7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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. diff --git a/setup.cfg b/setup.cfg index 36b7b0e..f91cf3e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = dccXMLJSONConv -version = 2.3.1 +version = 2.3.2 description = Python module for converting XML DCC (https://www.ptb.de/dcc/) to JSON and vice versa long_description = file: README.md long_description_content_type = text/markdown -- GitLab