Hello,
I am generating a XElement having this structure:
<TestNames>\r\n <Test>YA</Test>\r\n <Test>YO</Test>\r\n </TestNames>
How do I get rid of the whitespaces and \r\n in a non-hack way :)
Update:
XElement testsXmlDocument= new XElement("TestNames");
foreach (string test in selectedTests)
testsXmlDocument.Add(new XElement("Test",test));
return testsXmlDocument.ToString();