# w3c-schemas

> Jsonix XML-JSON mappings for W3C Schemas.

Latest version **1.4.0** (published 2015-12-28) · 0 weekly downloads

## Install

```sh
npm install w3c-schemas
pnpm add w3c-schemas
yarn add w3c-schemas
bun add w3c-schemas
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2015-12-28 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Alexey Valikov |
| Maintainers | highsource |
| Keywords | json, xml, unmarshal, unmarshalling, marshal, marshalling, parse, parsing, serialize, serializing, javascript, objects, dom, util, utility, jaxb, jsonix, mapping, atom, ws-addr, ws-addressing, ws addressing, xhtml, xlink, xmlschema, xml schema, xsd |

## Links

- npm: https://www.npmjs.com/package/w3c-schemas
- Repository: https://github.com/highsource/w3c-schemas
- Issues: http://github.com/highsource/w3c-schemas/issues
- npm.io page: https://npm.io/package/w3c-schemas

## Dependencies (1)

- [jsonix](https://npm.io/package/jsonix.md) >=2.4.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.4.0 (latest) — 2015-12-28
- 1.3.1 — 2015-09-12
- 1.3.0 — 2015-08-28
- 1.2.1 — 2015-07-05
- 1.2.0 — 2015-07-05
- 1.1.1 — 2015-06-13
- 1.1.0 — 2015-04-16
- 1.0.4 — 2015-03-28
- 1.0.3 — 2014-12-28
- 1.0.2 — 2014-12-28
- 1.0.1 — 2014-09-04
- 1.0.0 — 2014-08-31

## README

# W3C Schemas

`w3c-schemas` package provides [Jsonix](https://github.com/highsource/jsonix) XML-JSON bindings for some of the XML Schemas defined by W3C.

This allows converting between XML (conforming to one of these schemas) and JSON in with pure JavaScript.

Supports the following schemas:

* `Atom_1_0`
* `WS_Addr_1_0_Core`
* `XHTML_1_0_Strict`
* `XLink_1_0`
* `XSD_1_0`

# Example

```javascript

var XLink_1_0 = require('w3c-schemas').XLink_1_0;

var context =  new Jsonix.Context([XLink_1_0]);
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalFile("tests/locator-01.xml", function(result) {
	test.equal("label", result.value.label);
	test.done();
});
```

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