Anonymous - 2010-06-08

I want to load XML content from one file and save it as another, sample code:

TiXmlDocument document.
document.LoadFile ("file1.xml");
document.SaveFile ("file2.xml");

SaveFile() method fails, but ErrorDesc() doesn't return any message. is it TiXmlDocument-specific behavior or I'm doing something wrong?