%XML_ATTR_SETNAME

Set the name of an XML attribute

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

Return value

status

XML_SUCCESS if the name is set successfully.

Arguments

attr

The XML attribute instance to name. (XML_ATTR_TYPE)

name

The name of the attribute. The maximum length is 256 characters. (a)

Discussion

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

This function is defined as ^VAL.