AbsoluteLocationPath

Syntax

'/' RelativeLocationPath ? | AbbreviatedAbsoluteLocationPath


Verwendung

LocationPath


AbsoluteLocationPath

selektiert ein spezifisches Element ausgehend vom Rootknoten.


Definition

XPath Kapitel 2, Regel 2


Beispiel
Expression Bedeutung
/ selektiert den Rootknoten
/shop selektiert das <shop> Element, welches ein Nachfahre des Rootknotens ist
/shop/product/name/@image selektiert das Attribut [image] des <name> Elements, welches ein Nachfahre des <product> Elements ist, das wiederum ein Nachfahre des <shop> Elements ist, welches ein direkter Nachfahre des Rootknotens ist

© 2001 by Timo Schäfer