Skip to content

Replace "fast-xml-parser" with "@xmldom/xmldom" #7366

@trivikr

Description

@trivikr

Describe the feature

When XML Parser was investigated for AWS SDK for JavaScript (v3) in Jan 2020, we had only compared pixl-xml with fast-xml-parser #735 (comment)

We hadn't considered other xml parsers back then.

We revisited XML parsing as a follow-up to using native DOMParser in browser in #7347
Early benchmarks indicate that @xmldom/xmldom is faster than fast-xml-parser for our use cases https://github.com/trivikr/benchmark-xml-parser

Use Case

Switch to a parser which is compliant with DOMParser, as well as performant

Proposed Solution

Replace "fast-xml-parser" with "@xmldom/xmldom" as:

The bundle size is slightly bigger

But that won't impact browser applications, where we use DOMParser

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

N/A

Environment details (OS name and version, etc.)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions