Hi Everyone,
I've been playing about with XStream XML parsing and I have a bit of a problem. In a file I need to parse, I have a node with several arbitrary attributes of the same name. THe node is a football team and the attributes are the names of each player.
<team home="Arsenal">
<squad player="Manuel Almunia Rivero" player="Abou Diaby" player="Bacary Sagna" ... player="Robin van Persie"/>
<subs player="Carlos Vela" player="Theo Walcott"/>
</team>
My problem is that when I try and demarshall this file, I get a duplicate attribute problem. All I want to do is load this strings back into a List so I can maintain a collection of people on the team. It is not important for the order etc. Can somebody point me in the right direction of how to iterate though each attribute even if they have the same name? Thanks Chris