Below is my xml
<products>
<product>
<productid>1001</productid>
<remarks>
<title>This is remarks text of 1001</title>
</remarks>
</product>
<product>
<productid>1002</productid>
<remarks>
<title>This is remarks text of 1002</title>
</remarks>
</product>
<product>
<productid>1001</productid>
<remarks>
<title>This is remarks text of 1001</title>
</remarks>
</product>
<product>
<productid>1001</productid>
<remarks>
<title>This is another remarks text of 1001</title>
</remarks>
</product>
</products>
I need out put like below
- Take distinct
remarks/titlefrom there ownproductid need to take out the distinct
remarkofproductid1001Productid : 1001 Remark:This is remarks text of 1001
Productid : 1001 Remark:This is another remarks text of 1001