Skip to content

Conversation

@MagMar94
Copy link

@MagMar94 MagMar94 commented May 25, 2022

Closes #2681

When an XElement child node has an explicit empty namespace, it should not be serialized with the namespace of the parent node. The child should have "@xmlns": "" .

@MagMar94 MagMar94 force-pushed the magmar94/fix-xelement-serialization branch from a7f67fa to 274cd24 Compare May 30, 2022 15:27
When a child node has an explicit empty namespace, it should not be serialized with the namespace of the parent node.
@MagMar94 MagMar94 force-pushed the magmar94/fix-xelement-serialization branch from 274cd24 to 3220ca9 Compare May 30, 2022 15:41
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.

JsonConvert.SerializeXNode: Global namespace on child nodes are lost and implicitly replaced with parent elements namespace

2 participants