Click to See Complete Forum and Search --> : Tree View From Database


svs143
02-18-2003, 06:27 AM
Hi All,

I want to build a webased taxonomy application. i.e the datas are like this.

ROOT11
NODE21
NODE31
NODE41
NODE51
ROOT12
NODE22
NODE21
NODE32
NODE42
NODE41
1. When the user select NODE41 the path ROOT11\NODE21\NODE31\NODE41 should be diplayed in anywhere in the page ( separate label).

2. Please suggest how to maintain this data as database or XML or text file?

3. When the user selected NODE21 it should displyed the parents like ROOT12, ROOT11 so and so the user select the required parent?

svs143
02-18-2003, 06:35 AM
Hi,

I am adding more clarity for the existing data. This is the structure.

ROOT11
-NODE21
--NODE31
----NODE41
-----NODE51
ROOT12
-NODE22
-NODE21
---NODE32
----NODE42
----NODE41

1. Datas are tab delimitted text file.

Charles
02-18-2003, 06:35 AM
Save the following as "text.xml" and view it in MSIE 6.

<?xml version="1.0" encoding="iso-8859-1"?>
<ROOT>
<ROOT11>
<NODE21>
<NODE31>
<NODE41>
<NODE51/>
</NODE41>
</NODE31>
</NODE21>
</ROOT11>
<ROOT12>
<NODE22>
<NODE21>
<NODE32>
<NODE42>
<NODE41/>
</NODE42>
</NODE32>
</NODE21>
</NODE22>
</ROOT12>
</ROOT>

svs143
02-18-2003, 06:43 AM
1. The solution should be J2ee Architecture.

2. What all are the things to be loaded in each layers?

3. Since performance is the criritcal issue, what should be the approach?