From RAD Studio API Documentation
Jump to: navigation, search


property AttributeNodes: IXMLNodeList read GetAttributeNodes;


__property Xml::Xmlintf::_di_IXMLNodeList AttributeNodes = {read=GetAttributeNodes};


Type Visibility Source Unit Parent
property protected


Lists the interfaces for nodes that represent attributes of this node.

TXMLNode uses AttributeNodes to keep track of its attributes. AttributeNodes is an IXMLNodeList interface, which can be used to access individual attribute nodes or to add attributes to or delete them from this node.

Applications can't use this protected property to access the attributes of a node. Instead, they use the AttributeNodes property of the IXMLNode interface for this node.

Attributes modify a node in an XML document. For example, given the node

<Movie genre=scifi title="Star Wars"> ... </Movie>

both genre and title are attributes of the node, with values of "scifi" and "Star Wars", respectively.

Only element nodes have attributes, and not every element node has them. If the node does not have any attributes, AttributeNodes is the interface for an empty list.

Note: Attributes are not considered child nodes of a node and can't be accessed using the ChildNodes property.

See Also