XPath functions

  • e.g. /bib/book/author/last/text()
    returns Stevens Abiteboul Buneman

    document-node() = matches the document node
    text() = matches the text node
    comment() = matches a comment
    node() = child::node() = matches any node on the child axis
    attribute::node() = attribute() = matches any attribute node

    name() = returns the name of the current tag

    count() = counts the number of things in a list

    data() = converts an expression to a sequence of atomic values
    string() = converts an expression to a string

    Report Place comment