Lynn Allan - 2002-06-20

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 &apos;123&apos; 456\"> jkl &quot;mno&quot; &apos;pqr&apos; stu </Item>"

"<Item priority=\"4\" distance='ABC &apos;DEF&apos; GHI &quot;123&quot; 456'> JKL &quot;MNO&quot; &apos;PQR&apos; STI </Item>"

The Parse method replaced the &apos; and &quot; as expected.  However, I would have thought that during the SaveFile operation, the &apos; and &quot; 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