This is one file which is stored in my res folder. I want to parse this data.
<ROOT>
<ROW Name="Product Name~B" CheckBox="" Type="PerformanceNormal"
Count="1" ChildCount="1" Show="Y" Refine="B">
<COL Page="0" Image="" ProductID=""/>
<COL Page="1" Image="" ProductID="3">Sainsbury's aromatherapy citrus mint</COL>
<COL Page="1" Image="" ProductID="4">TestPerf</COL>
<COL Page="1" Image="" ProductID="5">TestPerf001</COL>
<COL Page="1" Image="" ProductID="24">Ashraf Product</COL>
<COL Page="2" Image="" ProductID="25">Acb</COL>
</ROW>
<ROW Name="Region~H" CheckBox="" Type="PerformanceNormal" Count="2"
ChildCount="1" Show="Y" Refine="H">
<COL Page="0" Image="" ProductID=""/>
<COL Page="1" Image="" ProductID="3">Western Europe</COL>
<COL Page="1" Image="" ProductID="4">Western Europe</COL>
<COL Page="1" Image="" ProductID="5">Western Europe</COL>
<COL Page="1" Image="" ProductID="24">Central and Eastern Europe</COL>
<COL Page="2" Image="" ProductID="25">Central and Eastern Europe</COL>
</ROW>
<ROW Name="Country~H" CheckBox="" Type="PerformanceNormal"
Count="3" ChildCount="1" Show="Y" Refine="H">
<COL Page="0" Image="" ProductID=""/>
<COL Page="1" Image="" ProductID="3">United Kingdom</COL>
<COL Page="1" Image="" ProductID="4">Belgium</COL>
<COL Page="1" Image="" ProductID="5">Belgium</COL>
<COL Page="1" Image="" ProductID="24">Czech Republic</COL>
<COL Page="2" Image="" ProductID="25">Czech Republic</COL>
</ROW>
</ROOT>
I want tp parse all data name, checkbox,type this is row information
and inside ROW tag multiple COL tags are there i want get data from COL also following data
page,image,productID
through all data i want to make a table on the screen
please help me
Note:If it is not useful then please ignore this.
I found myself to answer my question following way we can separate out (print)all details
we can do it using to parser
1)DOM parser
2)SAX parser
second method is
we got output as when DOM parser
out as when SAXParsing