libxmljs2

libxml bindings for v8 javascript engine

libxmljs2 downloads libxmljs2 version libxmljs2 license

libxmljs2类似的npm包:

npm下载趋势

3 年
🌟 在 libxmljs2 的 README.md 中显示实时使用量图表,只需复制下面的代码。
## Usage Trend
[![Usage Trend of libxmljs2](https://npm-compare.com/img/npm-trend/THREE_YEARS/libxmljs2.png)](https://npm-compare.com/libxmljs2#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 在 libxmljs2 的 README.md 中显示 GitHub stars 趋势图表,只需复制下面的代码。
## GitHub Stars Trend
[![GitHub Stars Trend of libxmljs2](https://npm-compare.com/img/github-trend/libxmljs2.png)](https://npm-compare.com/libxmljs2)

统计详情

npm包名称
下载量
Stars
大小
Issues
发布时间
License
libxmljs2574,86497.22 MB291 年前MIT

libxmljs2的README

NO LONGER MAINTAINED

Libxmljs2

LibXML bindings for node.js This package was forked as the original one is fairly unmaintained.

var libxmljs = require('libxmljs2');
var xml =
  '<?xml version="1.0" encoding="UTF-8"?>' +
  '<root>' +
  '<child foo="bar">' +
  '<grandchild baz="fizbuzz">grandchild content</grandchild>' +
  '</child>' +
  '<sibling>with content!</sibling>' +
  '</root>';

var xmlDoc = libxmljs.parseXml(xml);

// xpath queries
var gchild = xmlDoc.get('//grandchild');

console.log(gchild.text()); // prints "grandchild content"

var children = xmlDoc.root().childNodes();
var child = children[0];

console.log(child.attr('foo').value()); // prints "bar"

Support

API and Examples

Check out the wiki http://github.com/marudor/libxmljs2/wiki.

See the examples folder.

Installation via npm

npm install libxmljs2

Contribute

Start by checking out the open issues. Specifically the desired feature ones.

Requirements

Make sure you have met the requirements for node-gyp. You DO NOT need to manually install node-gyp; it comes bundled with node.