Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

XMLClose

  • Last UpdatedJul 18, 2023
  • 1 minute read

Use this function to delete an XML document in memory.

Syntax

INT XMLClose(INT hDoc)

hDoc

Handle of the XML document. Returned by XMLCreate or XMLOpen.

Return Value

0 (zero) if successful, otherwise an error code is returned.

XMLCreate, XMLGetAttribute, XMLGetAttributeCount, XMLGetAttributeName, XMLGetAttributeValue, XMLGetChild, XMLGetChildCount, XMLGetParent, XMLGetRoot, XMLNodeAddChild, XMLNodeFind, XMLNodeGetName, XMLNodeGetValue, XMLNodeRemove, XMLNodeSetValue, XMLOpen, XMLSave, XMLSetAttribute

Example

Following example creates an empty XML document and sets root element to shapes and namespace of root element to "http://mycompany.com/shapes/v1", then destroys the XML document.

INT hDoc=XMLCreate("shapes","http://mycompany.com/shapes/v1");

XMLClose(hDoc);

See Also

XML Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in