-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Fix issue related to handling namespace attributes in the XmlEncoder
class
#52401
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
Conversation
fix the issue related to handling namespace attributes in the XmlEncoder class.
Hey! Thanks for your PR. You are targeting branch "6.4" but it seems your PR description refers to branch "6.4 for features / 5.4 or 6.3 for bug fixes". Cheers! Carsonbot |
Can you clarify what "the issue" issue is that you are trying to fix here please? Please also add a test that ensures we don't break the fixed behaviour in the future. |
XmlEncoder
class
The XmlEncoder in Symfony does not parse the namespace for a node without children, resulting in invalid XML when encoding. The suggested solution is to modify the XmlEncoder::parseXmlAttributes method to fetch the namespace from the node if it has one. |
XmlEncoder
classXmlEncoder
class
added the test for xml namespace
I cherry picked the test from And added the explanation to the PR header |
Your test case is failing, can you please check? Thanks
|
Hey @Youngemmy5956, I didn't notice your PR and came up with the following: #52589. Does it solve your issue? |
Closing in favor of #52589 |
The XmlEncoder in Symfony does not parse the namespace for a node without children, resulting in invalid XML when encoding. The suggested solution is to modify the XmlEncoder::parseXmlAttributes method to fetch the namespace from the node if it has one.