
Hi,
Thanks in advance..
From the xml given below i need to create arraylist whose name is same as type value(e.g : list1,list2...),suppose i have created a list named list1 ,i need to insert all the rows of xml which is having type list1 in the arraylist named list1. the problem here is the value of type may change..it may contain list4 in another request.
so need help how to handle this through java arraylist.
xml :
<?xml version='1.0' standalone='no' ?>
<!--DOCTYPE document SYSTEM 'Req.dtd'-->
<Req version='2.0'>
<name arr='tx' add='xx'>00000</name><type>list1 </type>
<name arr='tx' add='xx'>4444</name><type>list2 </type>
<name arr='tx' add='xx'>098</name><type>list1 </type>
<name arr='tx' add='xx'>897</name><type>list2 </type>
<name arr='tx' add='xx'>000</name><type>list3 </type>
</Req>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.