Docs Menu
API Developer Guide / middleware / pub / xml / addAttribute

Service: addAttribute

This service adds an attribute to an XML node.

Input Parameter:

Name Type Description
attributeName: String The name of the attribute to be added.
attributeValue: String The value of the attribute to be added.
xmlNode: Object The XML node to which the attribute will be added.

Output Parameter:

Name Type Description
xmlNode: Object The XML node with the added attribute.