When an XPath query is executed, the XPath expression specified is applied to the document view of the workspace being searched.
For example, consider a workspace with the following structure (based on the earlier example in Section 184.108.40.206, with the addition of a top-most root node):
Note that in the above, the XML has been formatted for readability. The actual XML stream might not have any extraneous whitespace between elements or attributes.
In this case, to find the node called myapp:paragraph, the following XPath expression would be used:
//element(*, mynt:paragraph)[@myapp:title="Node Types"]
This query will return the node at the repository workspace path (as opposed to an XPath):