i have some xml code, and i want to parse this to java object please help me.
<Error>
<number>1020</number>
<Type>fatal</Type>
<Text>Nagaraju</Text>
<Text>Suresh</Text>
<Text>Sound</Text>
<Text>Rajesh</Text>
</Error>
java object is
Class Error{
int number;
String type;
List<String>texts=new ArrayList<String>();
}
I would map it manually personally, or use JAX-B perhaps, but if you really want to use XStream: