I redommend the XStream.
It parse the XML in the object with same strutuct.
About XStream
The your object will be:
List
while Resourceshave the attributes, with setters and getters, id that is an object Property with attibutes name and value.
Hope this help