Skip to main content

Crate oxml_wasm

Crate oxml_wasm 

Source
Expand description

WebAssembly bindings for oxml.

Being pure Rust with no C dependency is what makes this possible at all: libxml-based crates cannot target WebAssembly without a libxml2 toolchain, which is most of the reason a browser-side XPath has not been practical in Rust.

The surface is deliberately small. JavaScript already has DOMParser; what it does not have is a fast, dependency-free XPath that behaves identically to the server-side one. That is what these bindings expose.

Modules§

core
The work, without the wasm-bindgen layer.

Structs§

Document
A parsed XML document.

Functions§

is_well_formed
Check whether a document is well-formed, without keeping it.
parse
Parse an XML document.