Skip to main content
3 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'.

I tried to load and parse your xml file with tinyxml in C++, but I did not get any error. However, there is two solutions 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