ADD_ATTRIBUTE_TO_XML_RECORD

Syntax

ADD_ATTRIBUTE_TO_XML_RECORD ‘template name’ ‘element name’ ‘attribute name'attribute value

Description

Use the ADD_ATTRIBUTE_TO_XML_RECORD command to add attributes to a tag and data. Attributes can be added to a record or an element that has data.

To add multiple attributes, repeat the API call. Duplicate entries are removed and the latest value will be added.

Parameters

The following table lists and describes the parameters:

Parameter Description

Template Name

Specify the XML record where the attribute is added.

Element Name

Specify the name of the element that requires the attribute.

Attribute Name

Specify the attribute.

Attribute Value

Specify the value of the attribute.

Example

The following example illustrates the ADD_ATTRIBUTE_TO_XML_RECORD command:

ADD_ATTRIBUTE_TO_XML_RECORD 'n2:subject' 'subject_score2' 'out_of' '100'