You can use simplexml_load_file(string $filename) to this end. Just pass into this function the full URL $xml->nodename <nodename code=”603″ name=”somename”><subnode>Content</subnode></nodename> echo $xml[‘code’]; echo $xml[‘name’]; echo $xml->subnode; If there are more subnodes then : echo $xml->subnode->subnode2->; //& so on If you need to fetch from a longer list, like for example you need to retrieve all(…)