# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser) [![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser) 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](https://github.com/NaturalIntelligence/detailed-xml-validator/) to verify business rules. * Parse XML to JS Objectand 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 `
` 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
  1. Getting Started
  2. XML Parser
  3. XML Builder
  4. XML Validator
  5. Entities
  6. HTML Document Parsing
  7. PI Tag processing
  1. Getting Started
  2. Features
  3. Options
  4. Output Builders
  5. Value Parsers
**note**: - Version 6 is released with version 4 for experimental use. Based on it's 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](https://npm-compare.com/fast-xml-parser#timeRange=THREE_YEARS) NPM Usage Trend of fast-xml-parser # Supporters #### Contributors This project exists thanks to [all](graphs/contributors) the people who contribute. [[Contribute](docs/CONTRIBUTING.md)]. #### Backers from Open collective Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/fast-xml-parser#backer)] # License * MIT License ![Donate $5](static/img/donation_quote.png)