Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Fox on Aug 22, 2008 10:34
open dhtmlx forum
Initializing tree from inline XML error

I am a newbie starting to build a dhtmlx tree and I need to use the inline method.
Here is my code:
<div id="sidebar1">
<link rel="STYLESHEET" type="text/css" href="dhtmlxcodebase/dhtmlxtree.css">
<script type="text/javascript" src="dhtmlxcodebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="dhtmlxcodebase/dhtmlxtree.js"></script>
<script type="text/javascript" src="dhtmlxcodebase/ext/dhtmlxtree_start.js"></script>
<div id="treeboxbox_tree" setImagePath="dhtmlxcodebase/imgs/" class="dhtmlxTree" style="width:100%; height:300px; overflow:auto; ">
<xmp>
     <item text="Root" open="1" id="11">
<item text="Child1" select="1" open="1" id="12">
<item text="Child1-1" id="13"/>
</item>
<item text="Child2" id="14"/>
     <item id="15" text="Text"/>
    </item>
< /xmp>
</div>
<!-- end #sidebar1 --></div>

Here is the error I get:
Error type: DataStructure
Description: XML reffers to not existing parent

Answer posted by Support on Aug 25, 2008 02:50
You have an error in HTML structure
< /xmp>
must be 
</xmp>
Attachments (1)