Código PHP:
$sxml = simplexml_load_file("/videos.xml");
$res = $sxml->xpath("/mensajes/mensaje");
$posts = array();
foreach($res as $art2)
{
$posts[] = $art2->nombre;
}
sort($posts);
$clength=count($posts);
for($x=0;$x<$clength;$x++)
{
echo $posts[$x];
echo "<br>";
}
