Chapter 12. XPath 2.0 Node and Sequence Functions
IN THIS CHAPTER
Using Node Functions
The XPath 2.0 node functions let you handle nodes, and here's an overview of these functions:
fn:name
returns the name of the specified node as anxs:string
value.fn:local-name
returns the local name of the specified node as anxs:NCName
value.fn:namespace-uri
returns the namespace URI as anxs:string
value for a given node.fn:number
returns the value of the specified item converted to anxs:double
value.fn:lang
returns a Boolean value, depending on whether the language of the context node (defined with thexml:lang
attribute) matches the language passed to this function.fn:root
returns the root of the ...
Get XPath: Navigating XML with XPath 1.0 and 2.0 Kick Start now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.