Skip to content

Commit 04fe450

Browse files
authored
Merge pull request #70 from bb/patch-1
fix some typos in readme
2 parents 5952560 + a286818 commit 04fe450

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser)
2-
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
2+
Validate XML, Parse XML to JS/JSON and vice versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
33

44

55
[![Backers on Open Collective](https://opencollective.com/fast-xml-parser/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/fast-xml-parser/sponsors/badge.svg)](#sponsors) [![Known Vulnerabilities](https://snyk.io/test/github/naturalintelligence/fast-xml-parser/badge.svg)](https://snyk.io/test/github/naturalintelligence/fast-xml-parser)
@@ -32,7 +32,7 @@ Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly
3232
* Various options are available to customize the transformation
3333
* You can parse CDATA as separate property.
3434
* You can prefix attributes or group them to separate property. Or can ignore them from result completely.
35-
* You can parse tag's or attribute's value to premitive type: string, integer, float, or boolean. And can optionally decode for HTML char.
35+
* You can parse tag's or attribute's value to primitive type: string, integer, float, or boolean. And can optionally decode for HTML char.
3636
* You can remove namespace from tag or attribute name while parsing
3737
* It supports boolean attributes, if configured.
3838

@@ -48,7 +48,7 @@ To use it from **CLI** Install it globally with `-g` option.
4848

4949
`$npm install fast-xml-parser -g`
5050

51-
To use it on a**webpage** Include it from [parser.js](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/lib/parser.js) Or directly from [CDN](https://cdnjs.com/libraries/fast-xml-parser)
51+
To use it on a **webpage** include it from [parser.js](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/lib/parser.js) or directly from [CDN](https://cdnjs.com/libraries/fast-xml-parser)
5252

5353
### XML to JSON or XML to Nimn
5454
```js
@@ -99,7 +99,7 @@ var nimndata = fastXmlParser.convertTonimn(tObj,schema,options);
9999
* **trimValues** : trim string values of an attribute or node
100100
* **decodeHTMLchar** : This options has been removed from 3.3.4. Instead, use tagValueProcessor, and attrValueProcessor. See above example.
101101
* **cdataTagName** : If specified, parser parse CDATA as nested tag instead of adding it's value to parent tag.
102-
* **cdataPositionChar** : It'll help to covert JSON back to XML without loosing CDATA position.
102+
* **cdataPositionChar** : It'll help to covert JSON back to XML without losing CDATA position.
103103
* **tagValueProcessor** : Process tag value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only.
104104
* **attrValueProcessor** : Process attribute value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only.
105105

@@ -109,7 +109,7 @@ $xml2js [-ns|-a|-c|-v|-V] <filename> [-o outputfile.json]
109109
$cat xmlfile.xml | xml2js [-ns|-a|-c|-v|-V] [-o outputfile.json]
110110
```
111111

112-
* -ns : To include namespaces (bedefault ignored)
112+
* -ns : To include namespaces (by default ignored)
113113
* -a : To ignore attributes
114114
* -c : To ignore value conversion (i.e. "-3" will not be converted to number -3)
115115
* -v : validate before parsing
@@ -162,10 +162,10 @@ With the correct options, you can get the almost original XML without losing any
162162
* **attrValueProcessor** : Process attribute value during transformation. Like HTML encoding, word capitalization, etc. Applicable in case of string only.
163163

164164
## Comparision
165-
We've copared various libraries which transforms XML to JS. Most of them either are dependent on C/C++ libraries, or slow, or don't do reverse transformation.
165+
We've compared various libraries which transforms XML to JS. Most of them either are dependent on C/C++ libraries, or slow, or don't do reverse transformation.
166166

167167
*Why not C/C++ based libraries?*
168-
C/C++ based liraries are no doubt faster than this library but they don't run in browser, and a user need to install extra supporting libraries on their computer.
168+
C/C++ based libraries are no doubt faster than this library but they don't run in browser, and a user need to install extra supporting libraries on their computer.
169169

170170
### Benchmark report
171171

0 commit comments

Comments
 (0)