The example shows how to use KoolSlideMenu with all XML structure within KoolScripting
<?php
require $KoolControlsFolder."/KoolSlideMenu/koolslidemenu.php";
$xmlDoc = new DOMDocument();
$xmlDoc->load("SlideMenu.xml");
$ksm = new KoolSlideMenu("ksm");
$ksm->loadXML($xmlDoc->saveXML());
?>
<div style="height:200px;width:650px;padding-left:10px;">
<?php echo $ksm->Render();?>
</div>
<?xml version="1.0" encoding="utf-8"?>
<koolslidemenu id="ksm" width="200px" singleExpand="true" styleFolder="koolslidemenu/styles/bluearrow">
<parent id="company" text="Company" expand="true">
<child id="about" text="About us"/>
<child id="news" text="Company News" />
<child id="contact" text="Contact us" link="mailto:contact@koolphp.net" />
</parent>
<parent id="products" text="Products">
<child id="koolajax" text="KoolAjax" />
<child id="kooltreeview" text="KoolTreeView" />
<child id="koolslidemenu" text="KoolSlideMenu" />
</parent>
<parent id="services" text="Services">
<child id="outsourcing" text="Out-sourcing" />
<child id="freelancer" text="Free-lancer" />
</parent>
</koolslidemenu>