xml-wrappers
v0.1.3
Published
A few convenient wrappers for working with XML documents
Downloads
19
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
