I have got XML file which I would like to convert to a Java Object.
I have looked at JAXB, but this XML seems far too complex.
Here store
has same elements nested into each other. They don't match, and I am unsure of how I would create the annotation class for this.
<?xml version="1.0" encoding="UTF-8"?>
<store id="1" name="main">
<store id="2" name="xx">
<location>here</location>
</store>
<store id="3" name="xx">
<location>here</location>
</store>
<store id="56" name="xx">
<store id="97" name="xx">
<img>store_image.png</img>
<store id="101" name="five">
<img>tore_image.png</img>
<store id="145" name="xx">
<img>tore_image.png</img>
<location>here</location>
</store>
<store id="252" name="xx">
<img>store_image.png</img>
<location>here</location>
</store>
</store>
</store>
</store>
</store>
can you try