Hi, I need to find the parent attribute of a node, if anyone can help
<uniquenode>
<parent att="abc">
<child>foo</child>
<child>bar</child>
</parent>
<parent att="def">
<child>foo1</child>
<child>bar1</child>
</parent>
</uniquenode>
If child = foo1 parent['att']=def
so far i...
Hi I'm struggling to get to the child nodes within a parent with a specific attribute. I want to do this
$word=$xml->xpath("//page[@name='$page']")->word; but can't.
where $page is 'http://www.domain.co.uk'
the xml file has the format
<?xml version="1.0" encoding="UTF-8"?>
<keywords>
<page...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.