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

AVEVA™ Plant SCADA

XMLNodeRemove

  • Last UpdatedJul 18, 2023
  • 1 minute read

Removes the specified XML node from its parent and XML document.

Syntax

INT XMLNodeRemove(INT hDoc, INT hNode)

hDoc

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

hNode

Handle of the node. Returned by XMLGetRoot, XMLGetChild, XMLGetParent or XMLNodeFind.

Return Value

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

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

Example

INT hDoc, hNode;

hDoc=XMLOpen("H:\Data\books.xml");

IF hDoc <> -1 THEN

hNode = XMLNodeFind(hDoc,"/bookstore/book/");

IF hDoc <> -1 THEN

XMLNodeRemove(hDoc,hNode);

End

End

See Also

XML Functions

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