something weird, when i use the API LoadFile, it returns false, but actually the file is exist, struggle for it a long time, still can't resolve it. Is there anyone come across the same problem?
Help, thx.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I have resolved it, a little harder.
The format of my XML file didn't correct,
because i have ever add a mutibyte such as Chinese character, and it takes two bytes, and if it is odd, like this:
<Categories>国际, 假日, 礼物</Categories>,
it's invalid, only can i add a blank after the Chinese characters, like:
<Categories>国际, 假日, 礼物 </Categories>
I don't know if it is the TinyXML's bug,
please pay attenation to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
something weird, when i use the API LoadFile, it returns false, but actually the file is exist, struggle for it a long time, still can't resolve it. Is there anyone come across the same problem?
Help, thx.
OK, I have resolved it, a little harder.
The format of my XML file didn't correct,
because i have ever add a mutibyte such as Chinese character, and it takes two bytes, and if it is odd, like this:
<Categories>国际, 假日, 礼物</Categories>,
it's invalid, only can i add a blank after the Chinese characters, like:
<Categories>国际, 假日, 礼物 </Categories>
I don't know if it is the TinyXML's bug,
please pay attenation to it.
just add encoding GB2312, can also resolve it.
my mistake.