Convert INI to XML
Turn INI files into XML. Objects become elements inside one root element and every value becomes text, with characters a tag name cannot hold turned into underscores.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop INI files on the dialor turn it to pick what to do
INI settings as an XML document.Sections and keys become nested elements under one root.
What you get
One XML file. Objects become elements inside a single root element, and every value is written as text.
Characters that a tag name cannot hold are turned into underscores, so a key with a space or a symbol in it still gives a valid element name.
Attributes and text
A key that starts with @ becomes an attribute on its element. When the value of such a key is a list or an object, it is written as JSON text.
A key named #text becomes the element's own text.
What changes
A list repeats its element, once for each item. An empty list therefore disappears from the output, and a list of lists is flattened into one run of repeated elements.
Values lose their type, since everything is text. To go the other way, use XML to INI.
INI and XML.What each format is.
The formats
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
XML
XML documents and data.
- Extensions
- .xml
- MIME type
- application
/xml - Kind
- Text and data
In your code.The same INI to XML conversion through the API, for your app or your agent.
$ cv convert report.ini report.xml$ cv convert report.ini report.xmlQuestions.What people ask about INI to XML.
Yes. Objects become elements inside one root element.
Yes. Start the key with @ and it becomes an attribute. A list or an object in that key is written as JSON text.
Characters a tag name cannot hold are turned into underscores.
No. Every value becomes text in the XML.