XML

  1. Using XPath to find EMF elements

Consider this tree:

A
- B
--- B
- B (desired)
--- B
----- B ($current)

To get to the node desired, you can use the following XPath query:

$current/ancestor::B[parent::A]