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>();
   }

```