title: Reading and parsing an arbitrary xml structure in Java?
body: <p>New to XML parsing.I need to read a group of arbitrary XML files. They are all supposed to be POX, like the following format:</p>
  
  <pre><code>&lt;someThing&gt;
    &lt;property1&gt;blah blah blah&lt;/property1&gt;
    &lt;property2&gt;blah blah blah&lt;/property2&gt;
  &lt;/someThing&gt;
  </code></pre>
  
  <p>or the following:</p>
  
  <pre><code>&lt;thingList&gt;
    &lt;items&gt;
      &lt;otherThing&gt;
        &lt;prop3&gt;blah blah blah&lt;/prop3&gt;
        &lt;prop4&gt;blah blah blah&lt;/prop4&gt;
      &lt;/otherThing&gt;
      &lt;otherThing&gt;
        &lt;prop3&gt;blah blah blah&lt;/prop3&gt;
        &lt;prop4&gt;blah blah blah&lt;/prop4&gt;
      &lt;/otherThing&gt;
    &lt;/items&gt;
  &lt;/thingList&gt;
  </code></pre>
  
  <p>So I won't know the name of the elements beforehand. My question is if there is any Java library that handles reading in XML not by the name of the node or the node's attribute, but by structure?</p>