I am trying to parse an XML file (using VB.Net) and get the default namespace of the root element to add to a XMLNamespaceManager that will be applied to a different XML object.
I have tried several methods, but none have worked. The code snippet below is my most recent attempt:
Dim rdlXml As System.Xml.XmlDocument = New System.Xml.XmlDocument()
rdlXml.Load(reportDir & "/" & report & ".rdl")
Dim root As XmlNode = rdlXml.DocumentElement
Dim nsMgr as System.Xml.XmlNamespaceManager = new System.Xml.XmlNamespaceManager(rdlXml.NameTable)