How to convert CSV to XML
Create well-formed XML from a CSV table for a reader that expects tagged rows instead of delimiters.
- Paste the CSV and choose the delimiter.
- Convert and inspect the column-derived element names before using the document in an import.
Example input
SKU,Item,Quantity 00104,"Pocket, notebook",2 00105,Pencil,3
Example use
Send a catalog table to a tool that reads repeated XML row elements, then adapt the tags to the receiver’s schema if needed.
Output and compatibility
The converter produces a rows wrapper and row elements. It normalizes names for use as XML tags and escapes data characters. Nothing validates the export against a particular XML schema.
Troubleshooting
If an importer rejects fields, compare generated tag spelling and case with its requirements. Rename the source headers if the receiving system needs predictable element names.
Use Format XML to inspect nesting or XML to CSV for the opposite direction.
Frequently asked questions
Does it use CSV headers as tags?
Yes, after adjusting names that are unsuitable as tags.
Can I set my own namespace or root?
This conversion uses a fixed row structure. Edit the XML afterward if a schema requires more.