Convert XML to INI

Turn XML files into INI. Top-level objects become [sections] and plain top-level values come first, and an object inside a section becomes its own section named with a dot, such as [server.tls].

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 INI sections.Objects become sections, and plain values come first.

  1. What you get

    One INI file. Plain top-level values come first. Each top-level object becomes a section with its name in square brackets.

    An object inside a section becomes its own section, named with a dot, such as [server.tls].

  2. How lists are written

    A list becomes a repeated key, one line per entry. An empty list disappears from the output.

    Objects or lists inside a list are written as JSON text.

    A top-level list becomes one section per entry, numbered from 0 under items, as [items.0]. An entry that is not an object goes under the key value.

  3. When it stops

    If the XML cannot be parsed, the conversion stops with input_corrupted. No INI file is made in that case.

    To go the other way, use INI to XML.

XML and INI.What each format is.

The formats

From · XML

XML

XML documents and data.

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

INI

Sections of key and value pairs, the settings format of Windows and many tools.

Extensions
.ini .cfg
MIME type
text/x-ini
Kind
Text and data

In your code.The same XML to INI conversion through the API, for your app or your agent.

terminal
$ cv convert report.xml report.ini
$ cv convert report.xml report.ini

Questions.What people ask about XML to INI.

01OF 04

An object inside a section becomes its own section named with a dot. For example, a tls object inside server becomes [server.tls].

It becomes a repeated key. An empty list is left out of the output.

No. The conversion has no options to set.

The file could not be parsed. The conversion stops there and gives no INI file.

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