Hi,
I want to convert tinyxml document file into string. I have found on google as well as tinyxml document but I haven't solve it. What I have done so far is
I want to insert the file xyz.xml data into this string str. If it is char*, then it is also ok. Can anybody help me?
Regards
I want to convert tinyxml document file into string. I have found on google as well as tinyxml document but I haven't solve it. What I have done so far is
Code:
TiXmlDocument doc("xyz.xml");
TiXmlElement * root = new TiXmlElement( "login" );
root->SetAttribute("username","name");
root->SetAttribute("password", "pwd");
doc.LinkEndChild(root);
doc.SaveFile();
String str = "";
Regards
Comment