Помогите создать динамическое меню из XML который загружается с сайта
Код: Выделить всё
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://rosenergo/index.php?option=com_xmap&view=xml&layout=xsl&tmpl=component&id=1&filter_showtitle=1&filter_showexcluded="?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://rosenergo/</loc>
<title><![CDATA[Главная]]></title>
<uid>itemid101</uid>
<itemid>101</itemid>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>http://rosenergo/index.php/about-company</loc>
<title><![CDATA[Про компанию]]></title>
<uid>itemid108</uid>
<itemid>108</itemid>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
</urlset>