XML nodes are structured elements that support interaction and manipulation through various methods. These methods facilitate operations such as retrieving attribute names and values, accessing child nodes, obtaining the node name and type, and fetching the text value of an XML node.
Functionality
The getAttributeNames method retrieves all attribute names from the current node, while getAttributeValue returns the value of a specified attribute. To interact with node relationships, getChildNodes allows access to all child nodes. Additionally, getName provides the name of the XML node, and getType identifies its type. For textual data, getTextValue extracts the text content of the node.
Methods Summarized
Type
Name
Summary
Return all the attribute names of the current node.
Return the value of the named attribute.
Return the child nodes of the current node.
Return the name of the XML node element.
Return the text-value of the XML node element.
Return the type of the XML node element.
Methods Detailed
getAttributeNames()
Return all the attribute names of the current node.