We were given a sample document, and need to be able to reproduce the structure of the document exactly for a vendor. However, I\'m a little lost with how C# handles namesp
I personally prefer to use the common XmlElement and its attributes for declaring namespaces. I know there are better ways, but this one never fails.
Try something like this:
xRootElement.SetAttribute("xmlns:xsi", "http://example.com/xmlns1");