How can I read the XML from nested element.
Example:
<main>
<child>
<child2>
<child3>
<user>
<name>John</name>
</user>
<user>
<name>Doe</name>
</user>
</child3>
</child2>
<child1>
</main>
Now, I need to construct the user objects from this XML using Jackson. Basically I'm interested from child3 element. I don't want to create main, child1, child2 classes. Directly I want to read from child3. How can I achieve this? Please help