%XML_ELEM_CREATE

Create an XML element instance

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
element = %XML_ELEM_CREATE

Return value

element

The XML element instance created, or 0 if not successful. (XML_ELEM_TYPE)

Discussion

Use %XML_ELEM_CREATE to create both root elements and subelements. XML elements explicitly created with this routine and not added as data to a parent element will need to be deleted using %XML_ELEM_DELETE.

This function is defined as ^VAL.

Examples

The following example creates a root element.

root = %xml_elem_create

Also see Example of assembling XML.