NaturalIntelligence
fast-xml-parser
JavaScript

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.

Last updated Jul 8, 2026
3.1k
Stars
383
Forks
12
Issues
+6
Stars/day
Attention Score
97
Language breakdown
JavaScript 92.7%
TypeScript 4.2%
HTML 3.1%
โ–ธ Files click to expand
README

fast-xml-parser

NPM total downloads

Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.

FXP logo

  • Validate XML data syntactically. Use detailed-xml-validator to verify business rules.
  • Parse XML to JS Objects and vice versa
  • Common JS, ESM, and browser compatible
  • Faster than any other pure JS implementation.
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 :

``

Bundle size

| Bundle Name | Size | | ------------------ | ---- | | fxbuilder.min.js | 6.5K | | fxparser.min.js | 20K | | fxp.min.js | 26K | | fxvalidator.min.js | 5.7K |

Documents

v3v4 and v5v6
documents
    Getting Started

note:

  • Version 6 is released with version 4 for experimental use. Based on its demand, it'll be developed and the features can be different in final release.
  • Version 5 has the same functionalities as version 4.

Performance

negative means error

XML Parser

  • Y-axis: requests per second
  • X-axis: File size

XML Builder

  • Y-axis: requests per second


Usage Trend

Usage Trend of fast-xml-parser NPM Usage Trend of fast-xml-parser

Supporters

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers from Open collective

Thank you to all our backers! ๐Ÿ™ [Become a backer]

License

  • MIT License
Donate $5
๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท NaturalIntelligence/fast-xml-parser ยท Updated daily from GitHub