XPath: Syntax

Beispiele:

/html/child::table[2]

//table[@width = "50%"]

//td[position() != last()]

//ex:head

//head

//*[namespace-uri() = "http://www.example.org/" and local-name() = "head"]

/1/2/3 (nur XPointer!)
/child::*[1]/child::*[2]/child::*[3]

id("ziel") (nur XPointer!)