%XML_ATTR_SETVALUE

Set the value of an XML attribute

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
status = %XML_ATTR_SETVALUE(attr, value)

Return value

status

XML_SUCCESS if the value is set successfully.

Arguments

attr

The XML attribute instance to set a value for. (XML_ATTR_TYPE)

value

The value of the attribute. The maximum length is 65,022 characters. (a)

Discussion

If you defined the attribute using %XML_ELEM_SETATTRIBUTE, you do not need to call %XML_ATTR_SETVALUE to specify the attribute’s value. However, you can use %XML_ATTR_SETVALUE to change the value of an existing XML attribute

This function is defined as ^VAL.

See also

%XML_OPTION routine for information about escaping text when calling %XML_ATTR_SETVALUE