xpath Location paths and axes Traversing attribute and namespace nodes


Example

The attribute and namespace axes contain all attribute and namespace nodes of an element. The shortcut @ stands for attribute::, so the following are equivalent:

child::div/attribute::class
div/@class