Skip to content

hildjj/expat-wasm-dom

Repository files navigation

expat-wasm-dom

A Document Object Model for expat-wasm.

To install:

npm install --save expat-wasm-dom

To use:

import DomParser from 'expat-wasm-dom'
const doc = DomParser.parse('<foo><bar/></foo>')
console.log(doc.root.toString())
console.log(doc.get('//bar'))

Note that there is an implementation of XPath3 included. It is not in any way feature-complete yet, but it has a bunch of useful features already.

Full documentation is available.

A Command Line Interface is available in expat-wasm-dom-cli.


Tests codecov