TXMLDocumentLoadFromFile (C++)
Description
The following example uses the LoadFromFile function.
Code
void Test_LoadFromFile() {
_di_IXMLDocument document;
_di_IXMLNode node;
document = interface_cast<Xmlintf::IXMLDocument>(new TXMLDocument(NULL));
document->LoadFromFile(srcPath);
// Display document element local name.
if (document->DocumentElement != 0) {
printf("%ls\n", document->DocumentElement->LocalName);
}
}
Uses
- Xml.XMLDoc.TXMLDocument.LoadFromFile ( fr | de | ja )