DrRataplan / slimdom-sax-parser

Parses XML to a Slimdom document using Sax

Home Page:https://www.npmjs.com/package/slimdom-sax-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slimdom-sax-parser

Parses XML to a slimdom document using sax.

Works in browsers and NodeJS. Includes (namespaced) elements, (namespaced) attributes, processing instructions, comments and CDATA.

It's extremely easy to use

The only argument is a string of well-formed XML.

import parser from 'slimdom-sax-parser';

const document = parser.sync('<example></example>');

@TODO:

  • The streaming version

About

Parses XML to a Slimdom document using Sax

https://www.npmjs.com/package/slimdom-sax-parser


Languages

Language:JavaScript 100.0%