how to get element by attribute using dom parser in java
问题 I am not getting an idea how to get an element by its attribute. I tried something as below but getting error as the item(1) might change as the loop goes on. some field tags may be stripped off. so position might change. I want to get: <field name="Test/Content/Modified">Thu Jun 01 13:11:43 2014</field> Xml: <assets> <document path="some/path/1"> <metadata> <field name="Test/Content/Date">2013-12-20</field> <field name="Test/Content/Modified">Thu Jun 01 13:11:43 2014</field> <field name=