Online demo at http://syssgx.github.com/xml.js/
This package exports the xmllint
object which is an Emscripten port of
libxml2's xmllint
command for use in the browser or node.
xmllint(args, files);
args
is an array of arguments to pass to xmllint.
files
is an array of objects, each with a path
and data
property. These will be turned into pseudo-filesystem objects for xmllint to access.
The return value Object has two properties: 'stdout' and 'stderr':
if (!xmllint(args, files).stderr) {
//there were no errors.
}
- Install the Emscripten SDK.
- Run the following commands in this repository:
git submodule init
git submodule update
npm install
source ../emsdk_portable/emsdk_env.sh
gulp clean
gulp libxml2
gulp compile
gulp test