The Parse method replaced the ' and " as expected. However, I would have thought that during the SaveFile operation, the ' and " would have been put back in the file.
Am I doing something wrong? Is this expected behavior of the SaveFile method? Or a bug?
Regards,
Lynn Allan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wanted to check on how TiXmlDocument handled ' and " during the SaveFile method. I added these lines to your xmltest.cpp file:
"<Item priority=\"3\" distance=\"abc 'def' ghi '123' 456\"> jkl "mno" 'pqr' stu </Item>"
"<Item priority=\"4\" distance='ABC 'DEF' GHI "123" 456'> JKL "MNO" 'PQR' STI </Item>"
The Parse method replaced the ' and " as expected. However, I would have thought that during the SaveFile operation, the ' and " would have been put back in the file.
Am I doing something wrong? Is this expected behavior of the SaveFile method? Or a bug?
Regards,
Lynn Allan