Lets say we have the following XML:
<root>
<sub>
<id>1</id>
<values>
<value>1</value>
<value>2</value>
</values>
</sub>
<sub>
<id>2</id>
<values>
<value>16</value>
<value>15</value>
</values>
</sub>
</root>
What I want to with Apache Commons Configuration: I want to get all values for sub
with id
2. How could I achieve that? I find nothing in the documentation, how I can query with a dynamic hierarchy number.