Login   Register  
PHP Classes
elePHPant
Icontem

File: nav.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of khalid al-kary  >  Kxparse  >  nav.php  >  Download  
File: nav.php
Role: Auxiliary script
Content type: text/plain
Description: Navigation that comes with the documentation
Class: Kxparse
A very light XML parser!
Author: By
Last change:
Date: 11 years ago
Size: 355 bytes
 

Contents

Class file image Download
<?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>
<?}?>