https://github.com/nativescript/libxmljs
libxml bindings for v8 javascript engine
https://github.com/nativescript/libxmljs
Last synced: 8 months ago
JSON representation
libxml bindings for v8 javascript engine
- Host: GitHub
- URL: https://github.com/nativescript/libxmljs
- Owner: NativeScript
- License: mit
- Fork: true (rosen-vladimirov/libxmljs)
- Created: 2015-12-02T07:32:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T08:38:01.000Z (over 10 years ago)
- Last Synced: 2024-05-23T10:00:59.758Z (about 2 years ago)
- Language: C++
- Homepage: https://github.com/polotek/libxmljs/wiki
- Size: 3.3 MB
- Stars: 0
- Watchers: 20
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Libxmljs
[](http://travis-ci.org/polotek/libxmljs)
LibXML bindings for [node.js](http://nodejs.org/)
```javascript
var libxmljs = require("libxmljs");
var xml = '' +
'' +
'' +
'grandchild content' +
'' +
'with content!' +
'';
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
* Docs - [http://github.com/polotek/libxmljs/wiki](http://github.com/polotek/libxmljs/wiki)
* Mailing list - [http://groups.google.com/group/libxmljs](http://groups.google.com/group/libxmljs)
## API and Examples
Check out the wiki [http://github.com/polotek/libxmljs/wiki](http://github.com/polotek/libxmljs/wiki).
See the [examples](https://github.com/polotek/libxmljs/tree/master/examples) folder.
## Installation via [npm](https://npmjs.org)
```shell
npm install libxmljs
```
## Contribute
Start by checking out the [open issues](https://github.com/polotek/libxmljs/issues?labels=&page=1&state=open). Specifically the [desired feature](https://github.com/polotek/libxmljs/issues?labels=desired+feature&page=1&state=open) ones.
### Requirements
Make sure you have met the requirements for [node-gyp](https://github.com/TooTallNate/node-gyp#installation). You DO NOT need to manually install node-gyp; it comes bundled with node.