Skip to content

chore(xml-builder): parse XML internally#7863

Open
kuhe wants to merge 2 commits intomainfrom
kuhe/chore/xml
Open

chore(xml-builder): parse XML internally#7863
kuhe wants to merge 2 commits intomainfrom
kuhe/chore/xml

Conversation

@kuhe
Copy link
Copy Markdown
Contributor

@kuhe kuhe commented Mar 18, 2026

Issue

#7366

Description

Switch from fast-xml-parser to internal implementation.

Benchmarks: trivikr/benchmark-xml-parser#6

The main diff is that the XML parsing error will be communicated with a differently worded message.

Testing

snapshot tests, CI

Checklist

  • If the PR is a feature, add integration tests (*.integ.spec.ts) or E2E tests.
    • It's not a feature.
  • My E2E tests are resilient to concurrent i/o.
    • I didn't write any E2E tests.
  • I added access level annotations e.g. @public, @internal tags and enabled doc generation on the package. Remember that access level annotations go below the description, not above.
    • I didn't add any public functions.
  • Streams - how do they work?? My WebStream readers/locks are properly lifecycled. Node.js stream backpressure is handled. Error handling.
    • No streams here.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kuhe kuhe force-pushed the kuhe/chore/xml branch 2 times, most recently from dc70fa0 to b73fa31 Compare March 18, 2026 16:24
@kuhe kuhe marked this pull request as ready for review March 18, 2026 16:24
@kuhe kuhe requested a review from a team as a code owner March 18, 2026 16:24
@kuhe kuhe changed the title chore(xml-builder): parse XML with xmldom chore(xml-builder): parse XML internally Mar 18, 2026
@kuhe kuhe force-pushed the kuhe/chore/xml branch 3 times, most recently from 8c2acf7 to 43baba0 Compare March 18, 2026 17:38
@kuhe kuhe force-pushed the kuhe/chore/xml branch 4 times, most recently from b408de8 to 4fbf50c Compare March 20, 2026 00:26
@kuhe kuhe mentioned this pull request Mar 20, 2026
2 tasks
# Conflicts:
#	packages-internal/xml-builder/src/xml-parser.spec.ts
#	packages-internal/xml-builder/src/xml-parser.ts

# Conflicts:
#	packages-internal/xml-builder/package.json
#	private/aws-protocoltests-restxml-schema/package.json
#	private/aws-protocoltests-restxml/package.json
#	yarn.lock
Co-authored-by: George Fu <kuhe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant