Text to XML
Text to XML wraps lines of text, or rows of a CSV, in simple and valid XML.
What Text to XML does
Text to XML wraps lines of text, or rows of a CSV, in simple and valid XML. It helps when a system, app or data feed asks for XML and all you have is a list or a spreadsheet export.
You name the root element and the item element. With the CSV option on, the first line gives the column names, and each later row becomes an item with one child tag per column. With it off, each line becomes one item. Characters XML can't hold are removed, special symbols are escaped, and unsafe names are fixed with underscores. Download the result as text.xml.
How to use Text to XML
- Paste your text or CSV
Copy rows from a spreadsheet or a plain list.
- Name the elements
Set the root name, such as items, and the item name, such as item.
- Choose CSV or plain lines
Tick the CSV box if the first line holds column names.
- Copy or download
Copy the XML or save it as text.xml.
Questions about Text to XML
How do I convert CSV to XML?
Paste the CSV, keep 'First line is column names' ticked, and each row becomes an XML item with tags named after your columns.
What happens to spaces in my column names?
Spaces and other characters not allowed in XML tag names are replaced with underscores.
Will special characters like & break the XML?
No. Characters such as &, < and > are escaped, so the result stays valid.