eksml

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 / lossless

Write

Enter JSON (DOM, lossy, or lossless) and serialize it back to XML. Toggle pretty-print, entity encoding, and HTML mode.

write / fromLossy / fromLossless

SAX 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.

createSaxParser

Stream

Pipe XML through an XmlParseStream. Complete TNode subtrees are emitted as each top-level element closes. Click nodes to expand their full JSON.

XmlParseStream

Visualise

Step through the XML parser algorithm character by character. Watch the element stack grow and shrink as tags open and close.

parser-stepper

Benchmark

Compare synchronous XML parsing performance across multiple libraries. Each parser runs in a web worker for a fixed duration.

benchmark