Skip to content

Commit

Permalink
docs: fix typos in v5 document fast-xml-parse (#650)
Browse files Browse the repository at this point in the history
* docs: fix typo `fast-xml-parse` to `fast-xml-parser`

* docs: fix typos in `ValueParsers.md`
  • Loading branch information
abiriadev committed Apr 5, 2024
1 parent a96b968 commit 9118736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/v5/1. Getting Started.md
Expand Up @@ -3,7 +3,7 @@
Example with no configuration

```js
const XMLParser = require("fast-xml-parse/v5/XMLParser")
const XMLParser = require("fast-xml-parser/v5/XMLParser")
const parser = new XMLParser();
//read xmlData your own
let result = parser.parse(xmlData, true);
Expand All @@ -12,7 +12,7 @@ let result = parser.parse(xmlData, true);
The default response of parse is built by `JsObjOutputBuilder`. FXP v5 comes with 2 more output builders. And you can set your custom output builder too to customize the output.

```js
const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder");
const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder");

const parser = new XMLParser({
OutputBuilder: new JsObjOutputBuilder()
Expand Down
6 changes: 3 additions & 3 deletions docs/v5/5. ValueParsers.md
Expand Up @@ -12,7 +12,7 @@ Entity and date parsers have to be set.
Example when you don't override default parsers

```js
const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder");
const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder");

const xmlData = `<root>
<int> 1234 </int>
Expand Down Expand Up @@ -44,7 +44,7 @@ Output
But if you override it then it will use sequence in the order you defined.

```js
const JsObjOutputBuilder = require("fast-xml-parse/v5/OutputBuilders/JsObjBuilder");
const JsObjOutputBuilder = require("fast-xml-parser/v5/OutputBuilders/JsObjBuilder");

const xmlData = `<root>
<int> 1234 </int>
Expand Down Expand Up @@ -95,4 +95,4 @@ const outputBuilderOptions = {
]
}
}
```
```

0 comments on commit 9118736

Please sign in to comment.