1
1
# [ fast-xml-parser] ( https://www.npmjs.com/package/fast-xml-parser )
2
- [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/naturalintelligence/fast-xml-parser/badge.svg )] ( https://snyk.io/test/github/naturalintelligence/fast-xml-parser )
3
2
[ ![ NPM quality] [ quality-image ]] [ quality-url ]
4
3
[ ![ Coverage Status] ( https://coveralls.io/repos/github/NaturalIntelligence/fast-xml-parser/badge.svg?branch=master )] ( https://coveralls.io/github/NaturalIntelligence/fast-xml-parser?branch=master )
5
4
[ <img src =" https://img.shields.io/badge/Try-me-blue.svg?colorA=FFA500&colorB=0000FF " alt =" Try me " />] ( https://naturalintelligence.github.io/fast-xml-parser/ )
6
5
[ ![ NPM total downloads] ( https://img.shields.io/npm/dt/fast-xml-parser.svg )] ( https://npm.im/fast-xml-parser )
7
6
8
- [ quality-image ] : http://npm.packagequality.com/shield/fast-xml-parser.svg?style=flat-square
9
- [ quality-url ] : http://packagequality.com/#?package=fast-xml-parser
10
-
11
7
12
8
Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback.
13
9
14
- > XML Parser v5 is added for experimental use
15
- > https://solothought.com
10
+ ---
11
+
12
+ <a href =" https://www.amazon.in/Power-Glasses-world-imagination-Perspective-ebook/dp/B0CW1CJGNK/ " ><img align =" left " src =" https://github.com/NaturalIntelligence/fast-xml-parser/assets/7692328/e7a42bcc-5186-45e3-bfee-de8d8b9a69d4 " alt =" ads-thePowerGlassesBook " /></a >
13
+ I had recently published a book, The Power Glasses. Please have a look. Your feedback would be helpful. You can [ mail] ( githubissues@proton.me ) me for a free copy.
14
+ <br >
15
+
16
+ Sponsor this project
16
17
17
- Sponsor this project 👉
18
18
<a href =" https://github.com/sponsors/NaturalIntelligence " >
19
- <img src =" https://raw.githubusercontent.com/NaturalIntelligence/ThankYouBackers/main/github_sponsor.png " width =" 200 " />
19
+ <img src =" https://raw.githubusercontent.com/NaturalIntelligence/ThankYouBackers/main/github_sponsor.png " width =" 180 " />
20
20
</a >
21
21
<a href =" https://opencollective.com/fast-xml-parser/donate " target =" _blank " >
22
- <img src =" https://opencollective.com/fast-xml-parser/donate/button@2x.png?color=blue " width =200 />
22
+ <img src =" https://opencollective.com/fast-xml-parser/donate/button@2x.png?color=blue " width =180 />
23
23
</a >
24
- <a href =" https://paypal.me/naturalintelligence " > <img src =" static/img/support_paypal.svg " alt =" Stubmatic donate button " width =" 200 " /></a >
25
-
24
+ <a href =" https://paypal.me/naturalintelligence " > <img src =" static/img/support_paypal.svg " alt =" Stubmatic donate button " width =" 180 " /></a >
25
+ <br >
26
+ <br >
27
+ <br >
26
28
29
+ <!--
27
30
### Current Sponsors
28
31
29
32
Check the complete list at [ThankYouBackers](https://github.com/NaturalIntelligence/ThankYouBackers) for our sponsors and supporters.
@@ -45,7 +48,9 @@ Through OpenCollective
45
48
<a href="https://opencollective.com/fast-xml-parser/sponsor/7/website" target="_blank"><img src="https://opencollective.com/fast-xml-parser/sponsor/7/avatar.svg"></a>
46
49
<a href="https://opencollective.com/fast-xml-parser/sponsor/8/website" target="_blank"><img src="https://opencollective.com/fast-xml-parser/sponsor/8/avatar.svg"></a>
47
50
<a href="https://opencollective.com/fast-xml-parser/sponsor/9/website" target="_blank"><img src="https://opencollective.com/fast-xml-parser/sponsor/9/avatar.svg"></a>
51
+ -->
48
52
53
+ ![ fxp_sponsors] ( https://github.com/NaturalIntelligence/fast-xml-parser/assets/7692328/c9367497-d67e-410a-90a6-66e3808be929 )
49
54
50
55
## Users
51
56
@@ -63,14 +68,15 @@ Through OpenCollective
63
68
<a href =" https://github.com/SAP " title =" SAP " > <img src =" https://user-images.githubusercontent.com/7692328/204835214-d9d25b58-e3df-408d-87a3-c7d36b578ee4.png " width =" 60px " ></a >
64
69
<a href =" https://github.com/postmanlabs " title =" postman " > <img src =" https://user-images.githubusercontent.com/7692328/204835529-e9e290ad-696a-49ad-9d34-08e955704715.png " width =" 60px " ></a >
65
70
<a href =" https://github.com/react-native-community " title =" React Native Community " > <img src =" https://avatars.githubusercontent.com/u/20269980?v=4 " width =" 60px " ></a >
71
+ <a href =" https://github.com/googleapis " title =" Google APIs " > <img src =" https://avatars.githubusercontent.com/u/16785467?v=4 " width =" 60px " ></a >
72
+ <a href =" https://github.com/langchain-ai " title =" Langchain AI " > <img src =" https://avatars.githubusercontent.com/u/126733545?v=4 " width =" 60px " ></a >
73
+ <a href =" https://github.com/withastro " title =" Astro websie builder " > <img src =" https://avatars.githubusercontent.com/u/44914786?v=4 " width =" 60px " ></a >
74
+ <a href =" https://github.com/baidu " title =" Baidu " > <img src =" https://avatars.githubusercontent.com/u/13245940?v=4 " width =" 60px " ></a >
75
+ [ more] ( ./USERs.md )
66
76
67
- Check the bigger [ list] ( ./USERs.md )
68
-
69
- <small >The list of users is collected either from the list published by Github, communicated directly through mails/chat , or from other resources. If you feel that your name in the above list is incorrectly published or you're not the user of this library anymore then you can inform us to remove it. We'll do the necessary changes ASAP.</small >
77
+ <small >The list of users are mostly published by Github or communicated directly. Feel free to contact if you find any information wrong.</small >
70
78
71
- If you want to be an anonymous user of this application and don't want to be highlighted anywhere then you can contact me at
72
- - githubissues@proton.me
73
- - https://linkedin.com/in/amitguptagwl/
79
+ ---
74
80
75
81
## Main Features
76
82
@@ -79,7 +85,7 @@ If you want to be an anonymous user of this application and don't want to be hig
79
85
* Validate XML data syntactically
80
86
* Parse XML to JS Object
81
87
* Build XML from JS Object
82
- * Works with node packages, in browser, and in CLI (press try me button above for demo)
88
+ * Compatible to node js packages, in browser, and in CLI (click try me button above for demo)
83
89
* Faster than any other pure JS implementation.
84
90
* It can handle big files (tested up to 100mb).
85
91
* Controlled parsing using various options
@@ -137,48 +143,62 @@ In a HTML page
137
143
</script >
138
144
```
139
145
140
- Check lib folder for different browser bundles
146
+ Bundle size
141
147
142
148
| Bundle Name | Size |
143
149
| ------------------ | ---- |
144
- | fxbuilder.min.js | 5.2K |
145
- | fxparser.js | 50K |
146
- | fxparser.min.js | 17K |
147
- | fxp.min.js | 22K |
150
+ | fxbuilder.min.js | 6.5K |
151
+ | fxparser.min.js | 20K |
152
+ | fxp.min.js | 26K |
148
153
| fxvalidator.min.js | 5.7K |
149
154
150
155
### Documents
151
- ** v3**
152
- * [ documents] ( ./docs/v3/docs.md )
153
-
154
- ** v4**
155
- 1 . [ GettingStarted.md] ( ./docs/v4/1.GettingStarted.md )
156
- 2 . [ XML Parser] ( ./docs/v4/2.XMLparseOptions.md )
157
- 3 . [ XML Builder] ( ./docs/v4/3.XMLBuilder.md )
158
- 4 . [ XML Validator] ( ./docs/v4/4.XMLValidator.md )
159
- 5 . [ Entities] ( ./docs/v4/5.Entities.md )
160
- 6 . [ HTML Document Parsing] ( ./docs/v4/6.HTMLParsing.md )
161
- 7 . [ PI Tag processing] ( ./docs/v4/7.PITags.md )
156
+ <table >
157
+ <tr ><td >v3</td ><td >v4</td ><td >v5</td ></tr >
158
+ <tr >
159
+ <td>
160
+ <a href="./docs/v3/docs.md">documents</a>
161
+ </td>
162
+ <td><ol>
163
+ <li><a href="./docs/v4/1.GettingStarted.md">Getting Started</a></li>
164
+ <li><a href="./docs/v4/2.XMLparseOptions.md">XML Parser</a></li>
165
+ <li><a href="./docs/v4/3.XMLBuilder.md">XML Builder</a></li>
166
+ <li><a href="./docs/v4/4.XMLValidator.md">XML Validator</a></li>
167
+ <li><a href="./docs/v4/5.Entities.md">Entities</a></li>
168
+ <li><a href="./docs/v4/6.HTMLParsing.md">HTML Document Parsing</a></li>
169
+ <li><a href="./docs/v4/7.PITags.md">PI Tag processing</a></li>
170
+ </ol></td>
171
+ <td><ol>
172
+ <li></li><a href="./docs/v5/1.GettingStarted.md">Getting Started</a></li>
173
+ <li><a href="./docs/v5/2.Features.md">Features</a></li>
174
+ <li><a href="./docs/v5/3.Options.md">Options</a></li>
175
+ <li><a href="./docs/v5/4.OutputBuilders.md">Output Builders</a></li>
176
+ <li><a href="./docs/v5/5.ValueParsers.md">Value Parsers</a></li>
177
+ </ol></td>
178
+ </tr >
179
+ </table >
180
+
181
+ ** note** : version 5 is released with version 4 tfor experimental use. Based on it's demand, it'll be developed and the features can be different in final release.
182
+
162
183
## Performance
184
+ <small >negative means error</small >
163
185
164
186
### XML Parser
165
187
166
- ![ ] ( ./docs/imgs/XMLParser_v4.png )
188
+ <img align =" left " src =" ./docs/imgs/XMLParser_v4.png " width =" 45% " />
189
+ <img src =" ./docs/imgs/XMLParser_large_v4.png " width =" 47% " />
190
+
167
191
* Y-axis: requests per second
168
192
* X-axis: File size
169
193
170
- ** Large files**
171
- ![ ] ( ./docs/imgs/XMLParser_large_v4.png )
172
- * Y-axis: requests per second
173
- * X-axis: File size
174
194
### XML Builder
175
195
176
- ![ ] ( ./docs/imgs/XMLBuilder_v4.png )
196
+ < img src = " ./docs/imgs/XMLBuilder_v4.png " width = " 50% " />
177
197
* Y-axis: requests per second
178
198
179
- <small >negative means error</small >
180
199
181
- [ ![ ] ( static/img/ni_ads_ads.gif )] ( https://github.com/NaturalIntelligence/ads/ )
200
+
201
+ <!-- [](https://github.com/NaturalIntelligence/ads/) -->
182
202
183
203
184
204
## Supporters
0 commit comments