php xml SimpleXMLElement

Posted by ruru on Stack Overflow See other posts from Stack Overflow or by ruru
Published on 2010-03-30T14:11:01Z Indexed on 2010/03/30 14:13 UTC
Read the original article Hit count: 447

Filed under:
|
<Placemark id="p1"></Placemark>
<Placemark id="p2"></Placemark>
<Placemark id="p3"></Placemark>
<Placemark id="p4"></Placemark>

hi,im using SimpleXMLElement in my php, my question is,how do i get placemark id 3? is that something like this ?

$xml->Response->Placemark['id=3']->AddressDetails->Country->CountryName;

thanks

© Stack Overflow or respective owner

Related posts about Xml

Related posts about php