Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Xml » Xml_AppendAttributes
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Appends new attributes to the node.
Syntax
void fil::Xml_AppendAttributes ( const fil::XmlNode& inNode, const ftl::Array<ftl::String>& inNames, const ftl::Array<ftl::String>& inValues, fil::XmlNode& outNode )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inNode | const XmlNode& | Node to which new attributes will be added. | |
![]() |
inNames | const Array<String>& | Attributes names. | |
![]() |
inValues | const Array<String>& | Attributes values. | |
![]() |
outNode | XmlNode& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inNode and outNode
Read more about In-place Computation.
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.
Errors
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. |
See Also
- Xml_AddChildNodes – Appends new children nodes to the XML node.
- Xml_AddChildNodes_OfArray – Appends new children nodes to the XML node.