TXMLDocumentSaveToFile (C++)
Description
The following example uses the SaveToFile function.
Code
void Test_SaveToFile() {
_di_IXMLDocument document;
_di_IXMLNode node;
document = interface_cast<Xmlintf::IXMLDocument>(new TXMLDocument(NULL));
document->Active = true;
// Define document content.
node = document->CreateNode("TestElement");
document->DocumentElement = node;
document->SaveToFile(destPath);
}
Uses
- Xml.XMLDoc.TXMLDocument.Active ( fr | de | ja )
- Xml.XMLDoc.TXMLDocument.CreateNode ( fr | de | ja )
- Xml.XMLDoc.TXMLDocument.SaveToFile ( fr | de | ja )