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.

  1. 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].

  2. 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.

  3. When it stops

    The conversion stops with input_corrupted when 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

From · XML

XML

XML documents and data.

Extensions
.xml
MIME type
application/xml
Kind
Text and data
To · PROPERTIES

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.

terminal
$ cv convert report.xml report.properties
$ cv convert report.xml report.properties

Questions.What people ask about XML to PROPERTIES.

01OF 04

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.

More conversions.Other ways in and out of XML and PROPERTIES.