Skip to main content
2 of 3
added 23 characters in body
Valkea
  • 2.8k
  • 3
  • 19
  • 22

I don't know the XDocument API as I do not practice C#, but from my own experience with others languages you are probably right when you are suspecting the '\t' and '\n'.

So there is two solution that come to my mind. You could try the following options:

  1. Use the CDATA element as the text inside a CDATA section will be ignored by the parser.
  2. Use a trim function to remove the white spaces and line breaks.
Valkea
  • 2.8k
  • 3
  • 19
  • 22