Start » Filter Reference » System » Xml » Xml_AppendAttributes

Xml_AppendAttributes


Module: FoundationLite

Appends new attributes to the node.

Name Type Description
Input value
inNode XmlNode Node to which new attributes will be added.
Input value
inNames StringArray Attributes names.
Input value
inValues StringArray Attributes values.
Output value
outNode XmlNode

Description

This filter appends new attributes to the selected node. Both arrays inNames and inValues must have the same size. Empty attribute names are prohibited.

Remarks

Read more about how to handle XML in Working with XML Trees article.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Arrays inNames and inValues has different size in Xml_AppendAttributes.
DomainError Attribute name cannot start with a digit in Xml_AppendAttributes.
DomainError Empty attribute name in Xml_AppendAttributes
DomainError Empty inNames in Xml_AppendAttributes.
DomainError Invalid XmlNode in Xml_AppendAttributes.
DomainError Unable to append new attributes to the input node in Xml_AppendAttributes.

Complexity Level

This filter is available on Basic Complexity Level.

See Also