I have an xml that looks like this (fragment).
<struct>
<member>
<name>last_name</name>
<value>
<string></string>
</value>
</member>
<member>
<name>payment_method</name>
<value>
<int>1</int>
</value>
</member>
</struct>
How can I convert it to a java class? It has over 100 elements and 40 more like this to convert, so manually parsing it is out of the question :)
The problem is that parsers can't recognize the values that are enclosed in name and value tags, or I don't know how to use it. All the examples online asume you have something like <age>78</age>
not <name>age<name/> <value>78</value>