How the Excel to XML Converter Works
AnyTool Excel to XML reads the uploaded .xlsx or .xlsm workbook with the File API and parses it with the ExcelJS library, entirely in the browser. The first row of the selected sheet supplies the column names, and each subsequent row is wrapped in a configurable row element inside a single configurable root element. For each column the tool emits either a child element or, if you toggle that column, an attribute on the row. Cell values are normalised before they are written: formula cells use their cached result rather than the formula text, date cells are formatted as ISO, locale or Excel-serial values, and rich text and hyperlink cells are flattened to plain text. Header names are sanitised into valid XML names — illegal characters become underscores and names that start with a digit get an underscore prefix — and every value is XML-escaped. The XML regenerates live in a debounced effect as you change sheets, names or options, with nothing sent to a server.
- ExcelJS engine parses .xlsx/.xlsm in the browser
- Header row supplies column names; rows wrapped in a configurable row element
- Per-column choice of child element or attribute on the row
- Formula results used as values; dates as ISO, locale or Excel-serial
- Conversion regenerates live in the browser — no server round-trip
