Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Xml » Xml_AppendAttributes

Xml_AppendAttributes


Appends new attributes to the node.

Name Type Description
inNode XmlNode Node to which new attributes will be added.
inNames StringArray Attributes names.
inValues StringArray Attributes values.
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