Skip to content

gauss02/libxmljs

This branch is up to date with fishilico/libxmljs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

794183b · Nov 21, 2021
Jan 3, 2013
Aug 28, 2018
Aug 15, 2019
Aug 15, 2019
Jun 8, 2018
Dec 20, 2011
Sep 20, 2019
Sep 24, 2009
Mar 14, 2016
May 15, 2016
Sep 20, 2019
Nov 21, 2021
Aug 28, 2018
Sep 20, 2019

Repository files navigation

Libxmljs

Build Status

AppVeyor Build Status

LibXML bindings for node.js

var libxmljs = require("libxmljs");
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/libxmljs/libxmljs/wiki.

See the examples folder.

Installation via npm

npm install libxmljs

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.

About

libxml bindings for v8 javascript engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 60.7%
  • JavaScript 38.0%
  • Python 1.2%
  • Makefile 0.1%