TXMLDocumentIsEmptyDoc (C++)

From RAD Studio Code Examples
Jump to: navigation, search

Description

The following example uses the IsEmptyDoc function.

Code

void Test_IsEmptyDoc() {
	_di_IXMLDocument document;

	document = interface_cast<Xmlintf::IXMLDocument>(new TXMLDocument(NULL));
	document->Active = true;

	// Should display that the document is empty.
	if (document->IsEmptyDoc()) {
		printf("Document is empty.\n");
	}
}

Uses