Interactive examples for the eksml XML parser
Parse
Enter XML and see it parsed in real time. Switch between DOM (TNode[]), lossy, and lossless output modes.
parse / lossy / losslessWrite
Enter JSON (DOM, lossy, or lossless) and serialize it back to XML. Toggle pretty-print, entity encoding, and HTML mode.
write / fromLossy / fromLosslessSAX Parser
Feed XML to the SAX parser chunk-by-chunk. Watch opentag, closetag, text, CDATA, and comment events stream in with configurable throttle and chunk size.
createSaxParserStream
Pipe XML through an XmlParseStream. Complete TNode subtrees are emitted as each top-level element closes. Click nodes to expand their full JSON.
XmlParseStreamVisualise
Step through the XML parser algorithm character by character. Watch the element stack grow and shrink as tags open and close.
parser-stepperBenchmark
Compare synchronous XML parsing performance across multiple libraries. Each parser runs in a web worker for a fixed duration.
benchmark