%XML_ELEM_TOSTRING

Give the string representation for an XML element

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
status = %XML_ELEM_TOSTRING(element, string)

Arguments

status

XML_SUCCESS if the element was serialized. (i4)

element

The XML element instance for which you want a string representation. (XML_ELEM_TYPE)

string

The string to append to. (XML_STRING_TYPE)

Discussion

String must be created with %XML_STRING_CREATE before you call %XML_ELEM_TOSTRING. %XML_ELEM_TOSTRING appends the element serialization to the end of the string.

Examples

The example below assumes you have an XML element called elem1 that you want to append to an XML string:

strid, XML_STRING_TYPE
strid = %xml_string_create
ret = %xml_elem_tostring(elem1, strid)