Skip to content

Commit ca697d9

Browse files
authored
Update README.md
1 parent 9606258 commit ca697d9

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

README.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser)
22
Validate XML or Parse XML to JS/JSON very fast without C/C++ based libraries and no callback
33

4-
**Changes for V 3.0.0 are in progress** which will combine validator and parser and will be able to handle large XML files. So keep [watching](https://github.com/NaturalIntelligence/fast-xml-parser/watchers).
5-
64
You can use this library online (press try me button above), or as command from CLI, or in your website, or in npm repo.
75

86
* This library let you validate the XML data syntactically.
@@ -42,7 +40,6 @@ or using [yarn](https://yarnpkg.com/)
4240
var fastXmlParser = require('fast-xml-parser');
4341
var jsonObj = fastXmlParser.parse(xmlData);
4442

45-
// when a tag has attributes
4643
/* upto 2.9.x
4744
var options = {
4845
attrPrefix : "@_",
@@ -66,7 +63,7 @@ var options = {
6663
ignoreNameSpace : false,
6764
parseNodeValue : true,
6865
parseAttributeValue : false,
69-
trimValues: true, //Trim string values of tag and attributes
66+
trimValues: true
7067
};
7168
if(fastXmlParser.validate(xmlData)=== true){//optional
7269
var jsonObj = fastXmlParser.parse(xmlData,options);
@@ -77,6 +74,7 @@ var tObj = fastXmlParser.getTraversalObj(xmlData,options);
7774
var jsonObj = fastXmlParser.convertToJson(tObj);
7875

7976
```
77+
**OPTIONS** :
8078

8179
* **attributeNamePrefix** : prepend given string to attribute name for identification
8280
* **attrNodeName**: (Valid name) Group all the attributes as properties of given name.
@@ -137,15 +135,6 @@ Installation of such libraries fails on some OS. You may require to install miss
137135

138136
![npm_xml2json_compare](static/img/fxp-validatorv3.png)
139137

140-
141-
142-
**validator benchmark: 21000 tps**
143-
144-
Your contribution in terms of donation, testing, bug fixes, code development etc. can help me to write fast algorithms.
145-
[<img src="https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_92x26.png" alt="Stubmatic donate button"/>](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KQJAX48SPUKNC)
146-
147-
**Give a [star](https://github.com/NaturalIntelligence/fast-xml-parser)**, if you really like this project.
148-
149138
# Changes from v3
150139

151140
* It can handle big file now. Performance report is given above.

0 commit comments

Comments
 (0)