Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.

This branch adds an optional field to the options given to the validateXML function. If the user adds a field format with the content rng, then the argument used will be --relaxng instead of --schema. Otherwise --schema is used.

Online demo at

This package exports the xmllint object which is an Emscripten port of libxml2's xmllint command for use in the browser or node.

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

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

There are also equivalent gulp tasks.

You can’t perform that action at this time.