I've generated an XML document, and throughout the document the namespaces are displayed for each element. I would like to have all of the namespaces declared at the top of the document, and whenever the namespaces are referenced later in the document have an empty string appear "". Having the namespaces appear at all times is messy and clutters the document. How can I achieve this? I am using System.Xml.XmlDocument, System.Xml.NameTable nt, and System.Xml.XmlNamespaceManager.