Location: PHPKode > projects > XMLNuke Web Development Framework XML > xmlnuke-php5-v3.5r356/xmlnuke-php5/data/sites/sample/xml/en-us/treeview.en-us.xml
<?xml version="1.0"?>
<page>
	<meta>
		<title>XMLNuke Treeview</title>
		<abstract>XMLNuke Treeview</abstract>
		<created>20/10/2002 20:14:18</created>
		<modified>10/20/2002 8:14:18 PM</modified>
		<keyword>XMLSite ByJG</keyword>
		<groupkeyword>all</groupkeyword>
	</meta>
	<blockcenter>
		<title>Treeview</title>
		<body>
			<p>The XMLNuke has a component to display data in Treeview.
			These data can be organized hierarchically and can perform a JavaScript action when clicked.
			This component can be combined with the component Container to open pages without reloading the page.
			<code information="Código XML"><![CDATA[
<treeview title="Windows XP Explorer Treeview">

  <folder title="My documents" img="mydocuments.gif" 
    action="document.getElementById('here').style.display='none';">
    
    <leaf title="What's going on?" code="1" img="ie_link.gif" 
      action="loadUrl('here', '?module=sample&amp;xsl=blank');"/>
        
  </folder>
  
</treeview>			
]]></code>
			</p>
			<p>
				<treeview title="Windows XP Explorer Treeview">
					<folder title="My documents" img="mydocuments.gif" action="document.getElementById('here').style.display='none';">
						<folder title="House" img="folder.gif">
							<leaf title="What's going on?" code="1" img="ie_link.gif" action="loadUrl('here', '?module=sample&amp;op=1&amp;xsl=blank');"/>
							<leaf title="What's up?" code="1" img="question.gif"  action="loadUrl('here', '?module=sample&amp;op=2&amp;xsl=blank');"/>
							<leaf title="Why you should hire me?" code="1" img="question.gif" action="loadUrl('here', '?module=sample&amp;op=3&amp;xsl=blank');"/>
						</folder>
						<folder title="My images" img="myimages.gif">
							<leaf title="funny" code="1" img="red_ball.gif"  action="loadUrl('here', '?module=sample&amp;op=4&amp;xsl=blank');"/>
							<leaf title="ounga ounga" code="1" img="red_ball.gif"  action="loadUrl('here', '?module=sample&amp;op=5&amp;xsl=blank');"/>
						</folder>
					</folder>
					<folder title="My computer" img="computer.gif" action="document.getElementById('here').style.display='none';">
						<folder title="Floppy (A:)" code="1" img="floppy.gif"/>
						<folder title="Hard drive (C:)" code="1" img="harddrive.gif">
							<leaf title="Linux" code="1" img="folder.gif"/>
							<leaf title="Open source" code="1" img="folder.gif" action="loadUrl('here', '?xml=treeview&amp;xsl=blank&amp;rawxml=true&amp;xpath=//blockcenter');"/>
							<leaf title="Freedom" code="1" img="folder.gif"/>
						</folder>
						<leaf title="Configuration Panel" code="1" img="config.gif"/>
						<leaf title="Shared documents" code="1" img="folder.gif"/>
					</folder>
					<folder title="Network" img="network.gif" action="alert('Empty!');"/>
					<folder title="Trash" img="trash.gif" action="alert('Empty!');"/>
				</treeview>
				<container style="display: none; width: 100%; height: 400px" id="here"/>
			</p>
		</body>
	</blockcenter>
</page>
Return current item: XMLNuke Web Development Framework XML