XPath-Spickzettel
/bookNur das Wurzelelement book
//bookAlle book-Elemente überall
book/titleDirekte title-Kinder von book
book[@lang='en']Bücher mit lang-Attribut en
book[1]Erstes book-Kind
book[position()<3]Die ersten zwei book-Kinder
count(//book)Anzahl der book-Elemente
//book/@idAlle id-Attribute der Bücher
text()Textknoten des aktuellen Elements
name(.)Name des aktuellen Elements