GET element(s) by an attributes value

Is it possible to get an element of a node by the value of 1 attribute?
I know there is a method getelement() where you can specify an index,but I don't find a method where you can specify the attribute's name and value.
Now I have to loop trough all elements and check it's the element I need.
Friendly regards,


We just get the element by attribute value like you: Loop all the elements and check the element's attribute value...
As far as i know, we have not the simple method to get the element by only one attribute value...
If you have, pls tell us and you are very appreciated.
Best wishes.