I don't think you want the
xmlns
tag in a standard XML file - if I remove the
xmlns="http://tempuri.org/RequestDataSet.xsd"
it works...
"yes, but the xml file is generated by another software. maybe if i could try removing the tag with some string-file manipulation"
Regex removeXmlnsAttribute = new Regex("\\sxmlns=\".*?\"");
string result = removeXmlnsAttribute.Replace(InputText,regexReplace);
Dim removeXmlnsAttribute As New Regex("\sxmlns="".*?""")
Dim result As String = removeXmlnsAttribute.Replace(InputText, regexReplace)