title: How to get XML element path using stax/stax2?
body: <p>I want to get element path while parsing XML using java StAX2 parser.
  How to get information about the current element path?</p>
  
  <pre><code>&lt;root&gt;
    &lt;a&gt;&lt;b&gt;x&lt;/b&gt;&lt;/a&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>In this example the path is <code>/root/a/b</code>.</p>