let’s say I got a place_categories.xml file as following, and this is pure xml file and is not retrieved from any database:
<category>
<pcid>23533</pcid>
<name>Designer Clothing Shop</name>
<sub_category>shopping</sub_category>
</category>
<category>
<pcid>23540</pcid>
<name>Dim Sum Restaurant</name>
<sub_category>food & drink</sub_category>
</category>
How to find such : Select name, sub_category where pcid=23540 in PHP and JQuery and resulting
Dim Sum Restaurant
food & drink
You could try something like this if you want to avoid XPath: