Skip to content

axel-capodaglio/libxmljs

 
 

Repository files navigation

libxmljs/MSXML

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.

Changes

New functions

Some new functions have been added (e.g. selectSingleNode).

Changes in naming

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();

npm

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.

About

NodeJS bindings for libxml2 written in Typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 81.9%
  • TypeScript 16.3%
  • SWIG 1.4%
  • JavaScript 0.3%
  • Python 0.1%
  • Shell 0.0%