I am trying to do a search to get a url in PHP
I have tried
$the_id = $item['id'];
$nodes = $xml->xpath("//item[contains(g:id,'$the_id')]");
foreach($nodes as $node) {
$url = $node->g:link;
}
How do I do it?
$url = $node->g:link; gives a syntax error
Do I ignore g: and use id and link
Thanks
The xml layout is
<item>
<g:id>2023</g:id>
<g:title> Croquet Set - Townsend </g:title>
<g:description>
Already a v