- file_get_contents: documentation ( source)
- simplexml_load_string: documentation ( source)
- stream_context_create: documentation ( source)
- print_r: documentation ( source)
<?php
$context = stream_context_create(array('http' => array('header' => 'Accept: application/xml')));
$url = 'http://mp3.zing.vn/xml/album-xml/kHJmTZmaVRFQkCstkbJtDnLn';
$xml = file_get_contents($url, false, $context);
$xml = simplexml_load_string($xml);
print_r($xml);