Skip to content

hubgit/xml.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

API
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.
}

Building xmllint from source

  1. Install the Emscripten SDK.
  2. 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

About

Port of libxml to JavaScript using Emscripten

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.2%
  • Shell 22.3%
  • HTML 8.3%
  • CSS 5.2%