Skip to content
fileshape

File format

XML data files: records, attributes and conversion

Fileshape reads and writes XML (.xml, MIME type application/xml). Conversion runs in your browser.

XML is still common in enterprise, government and accounting exchanges, including product feeds and ERP exports. Records are repeated elements under a root, and each field is either a child element or an attribute. There's no single convention, so two XML files with the same data can look quite different.

Fileshape parses XML, finds the repeated element that holds the records and flattens each one: child elements become columns, attributes become columns prefixed with @, and nested elements use dot names. When writing, you choose the root and row element names, and column names are sanitised into valid XML element names.

Quirks

  • Element names can't start with a digit or contain spaces; such headers are adjusted on output.
  • Namespaces are kept as part of element names.
  • Mixed content (text plus child elements) isn't tabular and is flattened as best effort.