node-name

The qualified name of a node, as a QName

Description

The fn:node-name function returns the qualified name of a node as an xs:QName. It is useful only for element, attribute and processing instruction nodes. For elements and attributes, it is simply the names used in XML documents. If the node’s name is not in any namespace, the namespace portion of the QName is empty, while the local part is the appropriate name.

Parameters

Description

arg:node()

Examples

XPath

Results

node-name($in-xml)

A QName whose namespace is empty, whose prefix is empty, and whose local part is noNamespace

See Also