I'm serializing XML from a C# class, and I need to include a namespace in the root and child elements.
When I add a namespace from XmlSerializerNamespaces, it adds all of the namespaces to the root element.
I need to add some namespaces to the root as well as some to the Grouping1 Element.
Thanks
<root>
<Element>
<Grouping1>
<Item1>First1</Item1>
<Item2>Second1</Item2>
</Grouping1>
<Grouping2>
<Item3>Third1</Item3>
</Grouping2>
</Element>
<Element>
<Grouping1>
<Item1>First2</Item1>
<Item2>Second2</Item2>
</Grouping1>
<Grouping2>
<Item3>Third2</Item3>
</Grouping2>
</Element>
</root>