Socket
Socket
Sign inDemoInstall

xmllint

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xmllint

Online demo at http://syssgx.github.com/xml.js/


Version published
Maintainers
1
Install size
4.54 MB
Created

Readme

Source

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.

FAQs

Last updated on 02 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc