fast-xml-parser
Fast pure JS implementation of XML parser

Contribute
Become a financial contributor.
Financial Contributions
If Fast XML Parser makes your code fast, and your life less painful, you can become a supporter of its ongoing development. You'll also be highligh... Read more
$20 USD / month
Become a sponsor and get your logo on our README on Github with a link to your site. You'll also be highlighted as sponsor on http://amitkumargupta... Read more
$100 USD / month
Top financial contributors
Individuals
$55 USD since Feb 2018
$20 USD since Dec 2021
$10 USD since Sep 2018
$10 USD since Oct 2018
Organizations
$208 USD since Oct 2021
$20 USD since May 2023
fast-xml-parser is all of us
Our contributors 8
Thank you for supporting fast-xml-parser.
Amit Gupta
Sentry
$208 USD
anonymous
backer
$55 USD
Guest
$20 USD
HTTP Toolkit
Supporter
$20 USD
anonymous
$10 USD
Alexandre Drean
$10 USD
Guest

Budget
Transparent and open finances.
from Amit Gupta to fast-xml-parser •
Credit from Sentry to fast-xml-parser •
$21.57 USD
$292.25 USD
$270.68 USD
$348.00 USD

Connect
Let’s get the ball rolling!
News from fast-xml-parser
Updates on our activities and progress.
v4 was launched
v4 is on the way
Support Stop nodes
Conversations
Let’s get the discussion going! This is a space for the community to converse, ask questions, say thank you, and get things done together.
Thanks for the support but..
Published on November 19, 2022 by Amit Gupta
I really appreciate all the contribution to the project and financial support to FXP. But this is not the only good project I have created yet. It would be great if you check my other good projects too, like...

About
Features
- Validate XML data syntactically
- Transform XML to JSON or Nimn
- Transform JSON back to XML
- Works with node packages, in browser, and in CLI (press try me button above for demo)
- Faster than any pure JS implementation.
- It can handle big files (tested up to 100mb).
Various options are available to customize the transformation
- You can parse CDATA as separate property.
- You can prefix attributes or group them to separate property. Or can ignore them from result completely.
- You can parse tag's or attribute's value to primitive type: string, integer, float, or boolean. And can optionally decode for HTML char.
- You can remove namespace from tag or attribute name while parsing
- It also supports boolean attributes.
Our team
Amit Gupta