Convert XML to PROPERTIES
Turn XML files into PROPERTIES. Each value becomes one key=value line with Java escapes, under its path of keys joined with dots and list positions in brackets, such as server.hosts[0], and a top-level list is written under items, such as items[0].name.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop XML files on the dialor turn it to pick what to do
XML turned into Java properties.Each value in the XML becomes one key=value line.
What you get
One PROPERTIES file. Each value becomes one key=value line with Java escapes.
The key is the path of keys to that value, joined with dots. List positions go in brackets, such as server.hosts[0].
Lists and empty values
A top-level list is written under items, such as items[0].name.
An empty object or list is written as JSON text.
When it stops
The conversion stops with
input_corruptedwhen the XML file could not be parsed.To go the other way, use PROPERTIES to XML.
XML and PROPERTIES.What each format is.
The formats
XML
XML documents and data.
- Extensions
- .xml
- MIME type
- application
/xml - Kind
- Text and data
Java Properties
Key and value pairs in the Java properties format.
- Extensions
- .properties
- MIME type
- text
/x -java -properties - Kind
- Text and data
In your code.The same XML to PROPERTIES conversion through the API, for your app or your agent.
$ cv convert report.xml report.properties$ cv convert report.xml report.propertiesQuestions.What people ask about XML to PROPERTIES.
Each value is named by its path of keys joined with dots. List positions are written in brackets, such as server.hosts[0].
It is written under items. The first entry's name appears as items[0].name, for example.
It is written as JSON text.
The file could not be parsed. The conversion stops with input_corrupted in that case.