I have some XML data (similar to the sample below) and I want to read the values in code.
Why am I forced to specify the default namespace to access each element? I woul
You can use XmlTextReader.Namespaces property to disable namespaces while reading XML file.
string filePath; XmlTextReader xReader = new XmlTextReader(filePath); xReader.Namespaces = false; XDocument xDoc = XDocument.Load(xReader);