NodeJS bindings for libxml2 with MSXML support.
npm install @axelsoftware/libxmljs
This fork of libxmljs extends the original library with MSXML-compatible DOM methods and properties.
Some new functions have been added (e.g. selectSingleNode).
Some methods from the original library have been renamed with a _ prefix (e.g. _methodName). This was done to allow them to be exposed as properties instead of functions, improving API consistency and aligning with MSXML-like usage.
Example:
// Old style:
const name = node.childNodes();
// New style (property-like):
const name = node.childNodes;
// or
const name = node._childNodes();To publish the package on npm you must generate the dist directory, otherwise the published package won't have a valid main entry.
To do this you have to run the npm run tsc command before.