How the XML to Excel Converter Works
AnyTool XML to Excel performs the whole conversion in the browser. The file is read with the File API and parsed by the native DOMParser, then the tool walks the tree to find repeating element paths and offers the most frequent one as the record unit, so each matching node becomes a row. Inside each record, child elements are flattened into dotted column names (parent.child), attributes are emitted as their own columns under a configurable prefix (@, _ or -), and same-tag siblings are indexed (item[0], item[1]). The header row is the union of every field seen across all records, and the workbook is written with the ExcelJS library directly to the Office Open XML .xlsx format.
- File read with the File API; parsed by the browser DOMParser
- Repeating record element auto-detected from tree structure
- Nested elements flattened to dotted columns; attributes prefixed
- Header is the union of all fields, so sparse records still align
- Real .xlsx written client-side with ExcelJS — no server round-trip
