Extracting specific nodes using xml2tree...

reference file:
<xmldoc >
<column name="id" displayed="yes" >
ID Number
<foo gg="hh" >
fooText
<bar >
barText
</bar>
</foo>
more ID
</column>
<column myAttr="me" yourAttr="you" >
</column>
</xmldoc>

Extracting all 'column' nodes....
<column name="id" displayed="yes" >
ID Number
<foo gg="hh" >
fooText
<bar >
barText
</bar>
</foo>
more ID
</column>
This node at depth = 1

<column myAttr="me" yourAttr="you" >
</column>
This node at depth = 1


Extracting all 'column' nodes with specific attribute 'me'....

<column myAttr="me" yourAttr="you" >
</column>
This node at depth = 1


Extracting all 'foo' nodes at depth=2....

<foo gg="hh" >
fooText
<bar >
barText
</bar>
</foo>