I have many rows in XML and I'm trying to countget instances of a particular node attribute.
<foo>
<bar>
<type foobar="1"/>
<type foobar="2"/>
</bar>
</foo>
How cando I access the attributesvalues of the attribute foobar? In this example, I want "1" and "2".