It can handle big files (tested up to 100mb). XML Entities, HTML entities, and DOCTYPE entites are supported. Unpaired tags (Eg <br> in HTML), stop nodes (Eg <script> in HTML) are supported. It can also preserve Order of tags in JS object
IMPORTANT: It is recommended to use fast-xml-validator instead of inbuilt validator.
Before using this library
Flexible-XML-Parser is 1.25 times faster than this library when not preserving order of tags. Takes less memory when processing big files. Supports incomplete XML/HTML. And output is highly customizable. Build whatever you want. So if you're fine with some extra configuration then try it out.
@nodable/sax is a SAX parser based on Flexible-XML-Parser. 3-4 times faster than sax and support all features of base package like incomplete input, streams, skipping certain tags from processing etc.
fast-xml-validator is separated from this package. Has many features. Faster. You can exvlude particular tag from validation. And much more.
Your Support, Our Motivation
Please join Discord community for pre release announcements and discussions.
Financial Support
Sponsor this project
This is a donation. No goods or services are expected in return. Any requests for refunds for those purposes will be rejected.
Users
The list of users are mostly published by Github or communicated directly. Feel free to contact if you find any information wrong.
More about this library
How to use
To use as package dependency
$ npm install fast-xml-parser
or
$ yarn add fast-xml-parser
To use as system command
$ npm install fast-xml-parser -g
fast-xml-builder is a XML to JS Object builder used in this package in past. Now, it supports more features, and faster. So, recommend to use it directly.