I have the a string in XML format. I want to read it and get the values of the elements.

I have tried Java JAXBContext unmarshell, but this needs creation of class which is not necessary for me.

String:

<customer>
    <age>35</age>
    <name>aaa</name>
</customer>

I want to get the values of age and name.

Edit
Report