You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate XML or Parse XML to JS/JSON very fast without C/C++ based libraries and no callback
3
3
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
-
6
4
You can use this library online (press try me button above), or as command from CLI, or in your website, or in npm repo.
7
5
8
6
* This library let you validate the XML data syntactically.
@@ -42,7 +40,6 @@ or using [yarn](https://yarnpkg.com/)
42
40
var fastXmlParser =require('fast-xml-parser');
43
41
var jsonObj =fastXmlParser.parse(xmlData);
44
42
45
-
// when a tag has attributes
46
43
/* upto 2.9.x
47
44
var options = {
48
45
attrPrefix : "@_",
@@ -66,7 +63,7 @@ var options = {
66
63
ignoreNameSpace :false,
67
64
parseNodeValue :true,
68
65
parseAttributeValue :false,
69
-
trimValues:true, //Trim string values of tag and attributes
0 commit comments