2.0.4 • Published 9 months ago

@jvdneut/xml-parser v2.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 months ago

@jvdneut/xml-parser

Simple and lenient XML parser.

Parses into a generic (React-like) structure:

{
	name: "elementName",
	attributes: {},
	children: []
}

To use, install using npm install @jvdneut/xml-parser

const parse = require('@jvdneut/xml-parser');

const s = '<root attribute="value">text</root>';
// parse with relevant whitespace
const parsed = parse(s);

// parse ignoring whitespace
const parsedIgnoreWhitespace = parse(s, true);
2.0.3

9 months ago

2.0.4

9 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.1.1

1 year ago

1.1.0

4 years ago

1.0.0

6 years ago