1 TiXmlElement *in_elem = new TiXmlElement("tagname");  
2 TiXmlText *text = new TiXmlText( "Hello World" );   
3 in_elem->LinkEndChild(text);  
4 TiXmlPrinter printer;      
5 in_elem->Accept( &printer );  
6 std::string stringBuffer = printer.CStr();  
7 cout<<stringBuffer; 

相关文章:

  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-06-11
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-11-24
  • 2022-03-02
  • 2022-12-23
相关资源
相似解决方案