Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos in v5 document fast-xml-parse #650

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/v5/1. Getting Started.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 = {
]
}
}
```
```