Parsing of XML files in CDM
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- DevOps
The CDM XML parser enables the parsing of attribute key-value pairs in XML files, so when you upload config data from an XML file into CDM, you can easily identify the attributes of each element in the CDM editor or list view.
- Uploading existing config data from an XML file, including the attributes of XML elements as appropriate key-value pairs in JSON.
- Differentiating attributes from the config data items easily in the CDM editor.
- Validating imported CSV data with attributes in CDM for deployment.
- Converting attribute key-value pairs in JSON format as XML element attributes in XML file.
Parsing of XML to JSON during import
- Adds the @ prefix to all key names corresponding to attributes of XML elements.
- Adds a #text key for the enclosing text value of XML elements that have both attributes and enclosing text.
- XML format
- JSON format
Parsing of JSON to XML during export
- Add the @ prefix to all key names to make them parse as attributes of XML elements.
- Add keys named #text to CDIs that should be parsed as the enclosing text value of XML elements, when both attributes and enclosing text are present.
Related Content
- Uploading your config data
You first create a new CDM application structure and then upload the existing config data into the structure.
- Add the nodes that will contain config data to a new CDM application
Add the data structure to a new application that will accept the uploaded config data into appropriate nodes.
- Parsing of CSV files in CDM
The CDM CSV parser enables parsing of data in CSV files, so when you upload config data from a Comma-Separated Values (CSV) file into CDM, you can easily identify the data format attributes and config data in the CDM editor or list view.