草庐IT

TiXmlElement

全部标签

c++ - 使用 TinyXml for C++ 时需要清理哪些内存管理?

我正在使用TinyXml执行以下操作:TiXmlDocumentdoc;TiXmlDeclaration*decl=newTiXmlDeclaration("1.0","","");TiXmlElement*main=newTiXmlElement("main");TiXmlElement*header=newTiXmlElement("header");header->SetAttribute("attribute","somevalue");main->LinkEndChild(header);//...AddmanymoreTiXmlElment*tootherelementsa