Esempio Online Anteprima
Sorgente PHP: examples/tree/xmltree.php
Sorgente XML: examples/tree/xmltree.xml
L'oggetto tree risulta particolarmente adatto a visualizzare la struttura DOM di un file XML come mostrato nell'esempio
<?php
/**
* PHP Source File
* @author Alyx Association <info@alyx.it>
* @version 1.0
* @copyright Alyx Association 2008-2010
* @license GNU Public License
*/
require_once("./../../class/system.class.php");
$system = new ClsSystem(true);
$xml = new ClsXML("xmltree.xml");
$event = new ClsEvent($xml);
$event->managerRequest();
?>
<?xml version="1.0" encoding="utf-8"?>
<jamp>
<page typeobj="page" title="JAMP - Esempio tree collegata a una fonte xml" icon="../../favicon.ico" loaddata="true">
<ds1 typeobj="ds" conn="conn2" dskey="key" scope="base" base="/jamp/data" alias="jamp" />
<tree1 typeobj="tree" dsobj="ds1" refresh="brance" width="300px" height="autosize" dragable="true"/>
</page>
</jamp>