Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
node.js adapter for libxml2
C C++ JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
include/libxml
lib
spec
src
test-utilities
.gitignore
Makefile
README.md
binding.gyp
package.json

README.md

libxml2 ↔ node.js

This library exposes functionality implemented in libxml2 as functions and objects in node.js

As simple as possible

A very small subset

Only the most basic functionality has been implemented. For example, there is no support for namespaces, nor is there support for manipulating CDATA sections.

Dumb C++

The C++ has been kept as simple as we possibly can. It looks more like a C program than a C++ program. In certain cases, simpler implementation has been preferred over the most performant algorithm. e.g. We used a linked-list of nodes instead of a balanced binary tree.

Tested

Functional tests

There is a suite of over 200 scripted tests which have been designed to help protect the code from faulting.

Memory leak tested

One of the drivers for this library is that available adapters for libxml2 leak quite badly under moderate load. This code is being run in a production system which undergoes load tests to detect memory leaks.

TDB - Mapping of xmlgoo functions to libxml2 functions

Versions

1.0.4

  1. Upgrade includes to support gcc > 4.6

1.0.3

  1. Fixed bug whereby selectSingleNode (using and attribute match) would return an invalid node (and subsequently fault).

1.0.2

  1. Incorrect validation behaviour of .setAttribute changed so that you can now pass an empty string as the value
  2. A few bits and pieces to clean up tests
Something went wrong with that request. Please try again.