libxml2-nodejs
A wrapper for libxml2 (or an attempt to)
Installation
$ npm i libxml2-nodejs
Documentation
- Not ready yet (help us)
Usage example
"use strict"; const xml = ; // reading XML documentlet doc = xml; // Creating a XPath Contextlet ctxt = xml; // Get a node to Canonicalize// Starting from doc rootlet node = xml; // Position at childrennode = xml;// Get the secound (next) onenode = xml; // Just print the node nameconsole; // Set node to the XPath Contextxml; // Get XPath Object from Evaluating XPath Expressionlet xpath = xml; // Get NodeSet from evaluated XPath Objectlet nset = xml; // Finally Canonicalizexml;
Conclusion
It is only at the start of the wrapper and I'm trying to be close to C interface.