You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you checked the docs for helpful APIs and examples?
Description
Regression in fast-xml-parser@5.7.0: parser.addEntity("#xD", "\r") succeeds, but parsing later fails with [EntityReplacer] Invalid character '#' in entity name: "#xD".
This breaks the AWS XML protocol usage pattern (@aws-sdk/xml-builder) which registers #xD and #10 entities before parsing XML responses.
Input
Run with Node.js (reproduced on v22.18.0 and v24.13.0) and fast-xml-parser@5.7.0.
Are you running the latest version?
Description
Regression in
fast-xml-parser@5.7.0:parser.addEntity("#xD", "\r")succeeds, but parsing later fails with[EntityReplacer] Invalid character '#' in entity name: "#xD".This breaks the AWS XML protocol usage pattern (
@aws-sdk/xml-builder) which registers#xDand#10entities before parsing XML responses.Input
Run with Node.js (reproduced on
v22.18.0andv24.13.0) andfast-xml-parser@5.7.0.Code
#xDis a legal XML Character -> https://www.w3.org/TR/2006/PER-xml-20060614/The XML should parse successfully, returning an object like:
{
Tagging: {
TagSet: {
Tag: [
{ Key: "kind", Value: "anamnesis" },
{ Key: "pii", Value: "true" },
{ Key: "retention", Value: "permanent" }
]
}
}
}
Additional context from version matrix:
Would you like to work on this issue?