Location: PHPKode > scripts > Kxparse > nav.php
<?php
//including khalid xml parser
include_once "kxparse.php";

//create the object
$xmlnav=new kxparse("nav.xml");

for ($i=1;$i<=$xmlnav->count_tag("nav:item","1:?");$i++)
{?>
<div class="navit"><a href="<?php echo $xmlnav->get_attribute("nav:item","1:".$i,"href") ?>"><?php echo $xmlnav->get_tag_text("nav:item","1:".$i) ?></a></div>
<?}?>
Return current item: Kxparse