Cicode Programming Reference > Cicode Function Categories > XML Functions > XMLClose

XMLClose

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.

Related Functions

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://schneider-electric.com/shapes/v1", then destroys the XML document.

 

INT hDoc=XMLCreate("shapes","http://schneider-electric.com/shapes/v1");
XMLClose(hDoc);		

See Also

XML Functions

Published June 2018