Using the XML document in the
$menu variable defined in Example 11-5, print an HTML <ul>
list in which each list element is the
<title> of one
<item> in the XML document, and that
<title> is hyperlinked to the URL listed in
the <link> element of the item. For example,
if one of the items were:
<item>
<title>Steamed Rock Cod</title>
<link>http://menu.example.com/dishes.php?dish=cod</link>
<description>Enjoy a cod, bursting with flavor.</description>
</item>
Then the corresponding list element that your code prints would be:
<li><a href="http://menu.example.com/dishes.php?dish=cod">Steamed Rock Cod</a>
</li>