How to remove namespace from an XML Element using C#
- by Nair
I have an XML where I have a name space '_spreadSheetNameSapce'. In my code I have to add a new element with attribute associated with the name the space and I am doing it like the following
XElement customHeading = new XElement("Row",
new XAttribute(_spreadSheetNameSapce + "AutoFitHeight", "0"));
It creates the XElement…