Documentation
oxml-wasm — WebAssembly XML Engine
A safe, modern alternative to browser DOMParser with zero memory leaks and identical API ergonomics.
Installation
Install via npm or yarn:
JavaScript Usage
Use oxml-wasm in Node.js or browser ES modules:
;
const xml = `
<catalog>
<name>Widget</name>19.99</price></product>
<name>Gadget</name>29.99</price></product>
</catalog>
` ;
const doc = Document.;
const results = doc.;
; // Widget
Memory Benefits
Unlike the native browser DOMParser, which leaves cyclic references in the garbage collector and consumes unbounded memory on long-lived pages, oxml-wasm operates on a deterministic linear memory buffer with explicit, instant deallocation.