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

AVEVA™ Plant SCADA

XMLCreate

  • Last UpdatedJul 18, 2023
  • 1 minute read

Use this function to create a new XML document in memory.

Syntax

INT XMLCreate(STRING sRootElement, STRING sNamespace = "")

sRootElement:

Root element of the XML document.

sNamespace:

Optional. Namespace URI of root element.

Return Value

Handle of XML document, or returns -1 on error

XMLClose, 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".

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

See Also

XML Functions

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