XML namespace on child element

前端 未结 1 1031
误落风尘
误落风尘 2021-01-27 00:50

I\'ve got the following class structure:

public class Child { ... }

[XmlRoot(\"parent\", Namespace=\"parentNamespace\")]
public class Parent
{
    [XmlElement(N         


        
相关标签:
1条回答
  • 2021-01-27 01:20

    No conformant XML processor will care about the difference between your two cases, and neither should you. It's like ordering of attributes. The difference is insignificant at the XML level. You'd have to drop to the text level beneath XML to detect or control such a difference, but at the XML level you're better off ignoring it because it does not matter.

    0 讨论(0)
提交回复
热议问题