# xmllint

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

Latest version **0.1.1** (published 2016-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install xmllint
pnpm add xmllint
yarn add xmllint
bun add xmllint
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-08-02 |
| First published | 2015-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 180 |
| Author | kripken |
| Maintainers | sterpe |

## Links

- npm: https://www.npmjs.com/package/xmllint
- Repository: https://github.com/kripken/xml.js
- Homepage: https://github.com/kripken/xml.js#readme
- Issues: https://github.com/kripken/xml.js/issues
- npm.io page: https://npm.io/package/xmllint

## Recent versions

- 0.1.1 (latest) — 2016-08-02
- 0.1.0 — 2015-10-23

## README

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 #####

```javascript

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:

```javascript

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.

---
_Source: https://npm.io/package/xmllint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
