Creates an XML attribute node.

The Attribute step adds an attribute node to parent generated XML element in the sequence XML output.
The XML attribute resulting from this step can be output in the response XML of the sequence if the Output property is set to true, or used as a source by any other following step.
The attribute is named after the value of the Node name property, its value is set thanks to a source defined in Source property. If no source is defined or if its results is empty, the XML attribute contains the value of the Default value property, if a value is defined in this property.
Note:

• An Attribute step can only be added under Element steps, jElement steps and Complex steps.
• No step can be added under an Attribute step.

Property Type Category Description
Attribute namespace String standard Defines the namespace to use for this attribute.
Leave it blank for no namespace.
Attribute namespace URI String standard Defines the URI associated with the namespace.
Leave it blank for no namespace.
Comment String standard Describes the object comment to include in the documentation report.
This property generally contains an explanation about the object.
Default value String standard Defines the default text value of the attribute.
This property allows defining a default value to use when no source is defined or when the source result is empty.
Is active boolean standard Defines whether the step is active.
Node name String standard Defines the name of the generated XML attribute.
This property can contain any name, no words are reserved, and must follow the rules on XML naming:

• it can contain letters, numbers, and other characters,
• it cannot start with a number,
• it cannot contain spaces nor punctuation character.
Assigned XSD Simple type QName XmlQName expert Defines the schema base type to assign as a type to this simple XML element.
This property allows to assign a simple XSD type to the simple XML element generated by this step. It can only be used when the step actually generates a simple XML element.
Source XMLVector expert Defines the source to use as value.
This property allows defining a node or a list of nodes from a previous step used by current step as value.
A source is defined as a reference on a step previously existing in the parent sequence, associated with an XPath applied on the step’s result DOM. At runtime, the XPath is applied on the step’s current execution result XML and extracts a list of XML nodes resulting from this execution.
If the XPath doesn’t match or if the source is left blank, the step uses the value defined in Default value property, if a value is defined in this property. Otherwise, the step creates an empty attribute.