Skip to main content
added 23 characters in body
Source Link
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'.

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

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.

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.
added 23 characters in body
Source Link
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. 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.

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:

  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.

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.
Source Link
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:

  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.