Read List of Elements using apache commons

27 Views Asked by At

I am using spring and apache configuration library.

Is there any way to get the list under authentication tag as an java object?

<authentication>
 <entry>
   <key> name  </key>
   <value> Rishabh </value>
 </entry>
  <entry>
   <key> Id  </key>
   <value> 2515247 </value>
 </entry>
  <entry>
   <key>  pass </key>
   <value>password </value>
 </entry>
</authentication>

My authentication POJO looks like this.

protected List<Authentication.Entry> entry;

Thanks in advance!!!

0

There are 0 best solutions below