fast-xml-parser

Open source

Fast pure JS implementation of XML parser

Become a contributor

Financial contributions

Custom contribution

Donation

Make a custom one time or recurring contribution to support this collective.

3 individuals have contributed

Recurring contribution

backer

Support us to sustain and maintain

$5 USD / month

1 individual has contributed

Recurring contribution

Supporter

If Fast XML Parser makes your code fast, and your life less painful, you can become a supporter o... Read more

$20 USD / month

Recurring contribution

Sponsor

Become a sponsor and get your logo on our README on Github with a link to your site. You'll also ... Read more

$100 USD / month

Top financial contributors

1

anonymous

$55 USD since Feb 2018

2

anonymous

$10 USD since Sep 2018

3

Alexandre Drean

$10 USD since Oct 2018

What's new with fast-xml-parser

Stay up to dates with our latest activities and progress.

Support Stop nodes

Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string.
Published on March 23, 2019 by Amit Gupta

Handle hexadecimal numbers and numbers like strings

undefined
Published on March 23, 2019 by Amit Gupta

localeRange to support non English character

undefined
Published on May 22, 2018 by Amit Gupta

Budget

See how money openly circulates through fast-xml-parser. All contributions and all expenses are published in our transparent public ledger. Learn who is donating, how much, where is that money going, submit expenses, get reimbursed and more!

Monthly financial contribution to fast-xml-parser (backer)

anonymous | 12/01/2018 | View Details 
+$5.00USD
Amit Gupta | 11/27/2018 | View Details 
-$55.00USD

Monthly financial contribution to fast-xml-parser (backer)

anonymous | 11/01/2018 | View Details 
+$5.00USD

Today’s balance

$5.82 USD

Estimated annual budget

~ $0.00 USD

fast-xml-parser is all of us

Our contributors 4

Everyone who has supported fast-xml-parser. Individuals and organizations that believe in –and take ownership of– our purpose.

Amit Gupta
Collective Admin
anonymous
Financial Contributor

Total contributions

$55 USD

backer

anonymous
Financial Contributor

Total contributions

$10 USD

Alexandre Drean
Financial Contributor

Total contributions

$10 USD

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.