Selecting Nodes
XPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below:
nodename --> Selects all child nodes of the named node
/ --> Selects from the root node
// --> Selects nodes in the document from the current node that match the selection no matter where they are
. --> Selects the current node
.. --> Selects the parent of the current node
@ --> Selects attributes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment