0
使用童工值。對於該節點獲取在PHP
<product>
<productId>531334</productId>
<productName>Mixed wrap platter - </productName>
<productImage>http://d25hqtnqp5nl24.cloudfront.net/images/products/9/LN_531334_BP_9.jpg</productImage>
<productUrl>http://www.waitrose.com/shop/DisplayProductFlyout?productId=75117&?utm_source=infectious&utm_medium=display&utm_campaign=baby</productUrl>
<price>16.00</price>
<categoryid1>Groceries</categoryid1>
<categoryid2>Fresh</categoryid2>
<categoryid3>Fresh Party Food to Order</categoryid3>
</product>
我怎麼會得到基於兒童categoryid2的價值在整個產品節點XML文檔的祖先節點?