title: Looking for JDOM2 XPath examples
body: <p>I am using JDOM2 for the first time and I am looking for some XPATH based examples.</p>
  
  <p>Ex: My XML looks as follows</p>
  
  <pre><code>&lt;Root&gt;
    &lt;Parent id="1"&gt;
      &lt;Child id="1" /&gt;
      &lt;Child id="2" /&gt;
      &lt;Child id="3" /&gt;
    &lt;/Parent&gt;
    &lt;Parent id="2"&gt;
      &lt;Child id="1" /&gt;
      &lt;Child id="2" /&gt;
      &lt;Child id="3" /&gt;
    &lt;/Parent&gt;
    &lt;Parent id="3"&gt;
      &lt;Child id="1" /&gt;
      &lt;Child id="2" /&gt;
      &lt;Child id="3" /&gt;
    &lt;/Parent&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>My background is .NET &amp; XPATH traversing is very easier with System.XML</p>
  
  <p>I am working on a (new to) Java application where I need to use XML. I am planning to use JDOM2. I want to use DOM parsing and not SAX.</p>
  
  <p>I am looking for some examples on how to use XPATH with JDOM2.</p>
  
  <p>Ex. How can I navigate to an element let's say <code>"/Root/Parent[@id='2']/Child[@id='3']"</code></p>
  
  <p>Can you guys give me some examples? I searched but I couldn't find one for JDOM2</p>