I have this sample xml file:-
<products>
   <product_id value="1">
       <tab_id value="251">
            <dist_region value="5" />
            <dist_region value="10066" />
            <dist_region value="10069" />
       </tab_id>
   </product_id>
</products>
I am trying to get tab_id child element using XPathand I want result in set of child elements.
My expected output is as follows:-
dist_region,dist_region,dist_region
MY XPATH:-
$tab = $product->xpath('//tab_id/*');
Can anyone suggest what is the XPath to get child elements?
Thanks.
 
     
    