XPath Predicates

Example usage of predicates:
  • Get the keywords of an XHTML document:
    /html/head/meta[@name='keywords']
  • Get the last a element of the context node:
    a[position() = last()]
 
© Copyright 2005