XPath v1

Print the objectives

  Take a beta test

Two kind of questions are typically asked in this exam:
  • Identify the node of an XML fragment from a given XPath expression.
  • Given an XML fragment and a node, select the correct XPath expression to get it.

Questions from any category below may include notions (but no trick) from other categories. For example, a question in the "expression" category may include basic location path elements.

XPath v2.0 is not covered in this exam.
  Released  Beta  Frozen  

Location paths  6 questions

Understand the syntax of XPath expressions.
Use the following elements in XPath expressions:
  • Axis specifiers: ancestor, ancestor-or-self, attribute, child, descendant, descendant-or-self, following, following-sibling, namespace, parent, preceding, preceding-sibling, self.
  • This includes the "/", "//" and predicate "[..]" operators
  • Abbreviated and expanded syntax.
2 29 7

Expressions  6 questions

Use the following operators in XPath expressions:
  • Union operator "|".
  • Boolean operators "and" and "or", and the function "not()"
  • Arithmetic operators "+", "-", "*", "div" and "mod"
  • Comparison operators "=", "!=", "<", ">", "<=", ">="
0 12 2

Core Functions  6 questions

Use, in XPath expressions, functions that:
  • Manipulate strings: concat(), substring(), contains(), substring-before(), substring-after(), translate(), normalize-space(), string-length()
  • Manipulate numbers: sum(), round(), floor(), ceiling()
  • Get properties of nodes: name(), local-name(), namespace-uri()
  • Get information about the processing context: position(), last()
  • Convert types: string(), number(), boolean()
0 22 4

Exam information

  • 27 minutes
  • 18 questions (78)
  • 80% required
  • +3 √
  • - 12  points
  • 15 day delay
  • status: under construction