Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

XML parsing Dependency migration #1539

@amitguptagwl

Description

@amitguptagwl

Short description of the problem:

The current library we are using to parse XML into JS object gives incorrect results when it parses long XML. It is also slow. Here is the comparison;

Benchmark

What behavior are you expecting?

I would like to suggest to migrate to fast-XML-parser.

Here is the tabular representation.

file size fxp 3.0 parser (rps) xml2js 0.4.19 (rps)
1.5k 14032.09323 4615.930805
1.5m 13.23366098 5.90682005
13m 1.135582008 -1
1.3k with CDATA 43160.52342 8398.556349
1.3m with CDATA 52.68877009 7.966000795
1.6k with cdata,prolog,doctype 41433.98547 7872.399268
98m 0.2600104004 -1

As you can notice, in case of large file xml2js gives an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions