0.1.26 • Published 3 years ago

@scion-scxml/xmllint v0.1.26

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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
Object xmllint.validateXML({
	xml: "String",
	schema: "String" || ["String", "String", ...]
});

The return value Object has one property errors which is either null, in the case of no errors, or an Array of error strings....eg:

if (!xmllint.validateXML(opts).errors) {
	//there were no errors.
}

Usable with Browserify via browserify-shim.

Building xmllint from source

Install emscripten.

	git clone
	git submodule init
	git submodule update
	./script/clean
	./script/libxml2
	./script/compile
	./script/test

There are also equivalent gulp tasks.

0.1.26

3 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.1

6 years ago