xml-wrappers

A few convenient wrappers for working with XML documents

Usage no npm install needed!

<script type="module">
  import xmlWrappers from 'https://cdn.skypack.dev/xml-wrappers';
</script>

README

XML wrappers

A couple of wrappers for XML documents

XPath

Instead of the nightmare that is document.evaluate select returns a plain array of nodes.

import { select } from 'xml-wrappers';

const nodes = select(xmldoc, "//Activity[@Sport='Running']")

Also does a fairly good job ignoring the xml namespaces for the most common usecases.

Debug output is enabled with _XML_WRAPPERS_TRACE_ENABLED_ = true