%XML_ELEM_SETTEXT

Set the text value of an XML element

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %XML_ELEM_SETTEXT(element, text)

Return value

status

XML_SUCCESS if the text was set successfully.

Arguments

element

The XML element instance to set text for. (XML_ELEM_TYPE)

text

The text that will appear between the element’s opening tag and closing tag. The maximum length is 65,534 characters. (a)

Discussion

%XML_ELEM_SETTEXT sets the text that appears between the XML element’s opening and closing tags.

This function is defined as ^VAL.

See also

%XML_OPTION for information about escaping text when calling %XML_ELEM_SETTEXT.

Examples

See xfspism2xml.zip, available from the Synergy CodeExchange in the Resource Center on the Synergex website.