I have been working on a Windows Form in .NET C# that requires me to search and pull nodes from one XML document and place them into a newly created one using XmlReader. I have everything completed but am having issues copying the whole Namespace Declaration element that contains prefixes. I have tried many different techniques but everything I've tried fails for just as many reasons, mainly I get XML exceptions when trying to append. Below is an example of the format of the element that I'm trying to copy (using a XmlReader) from an existing document.
URL" xmlns:Name="URL" xmlns:Name="URL" xmlns:Name="URL" xmlns:Name="URL">
I need copy this into the root element location immediately after the Xml Declaration which I have already created an appended to the document. Also it would be a good idea to mention that I have not been using System.Xml.Linq and have only been using System.Xml and am trying to stick with that specific .Net Namespace