6.6.4.13 element() Node Test

The element() node test defined in XPath 2.0 is used to select nodes of a particular primary node type. For example:

//element(*, nt:file)

would select all nodes of primary node type nt:file. This includes all node of subtypes of nt:file as well.