AdamBrunt
09-22-2004, 03:38 PM
Hi all,
I have a feeling this is going to be a long shot but hopefully there are some XML gurus who could help me out with something ....
I want to have an page in IE that has two "divs" areas on it.
In the left hand one I want an "explorer" tree built from an XML document.
The XML document will look like
<GROUP>
<ID = "1">
<SKILL>
<ID = "1">
</SKILL>
</GROUP>
<GROUP>
<ID = "2">
<SKILL>
<ID = "2">
</SKILL>
<SKILL>
<ID = "3">
</SKILL>
</GROUP>
ie a number of GROUPS each of which contain any number of SKILLS.
The "div" block on the right is initially empty. On clicking on a branch/node in the left hand tree, I want that node/branch added to to the 'tree' on the right. If a branch's node doesn't exist in the right hand tree when a branch is clicked then the branch will need to be added as well.
Clicking on a branch/node in the right hand tree simply removes it from the tree.
Finally, at any time I need to be able to get a list of the (group id, skill id) currently in the right hand tree.
As I say ... I know it's a long shot but does anyone know if the above is possible ?? Or better still got any pointers as to where to start/sample code/working examples ??
TIA for any help.
Regards,
Adam Brunt
I have a feeling this is going to be a long shot but hopefully there are some XML gurus who could help me out with something ....
I want to have an page in IE that has two "divs" areas on it.
In the left hand one I want an "explorer" tree built from an XML document.
The XML document will look like
<GROUP>
<ID = "1">
<SKILL>
<ID = "1">
</SKILL>
</GROUP>
<GROUP>
<ID = "2">
<SKILL>
<ID = "2">
</SKILL>
<SKILL>
<ID = "3">
</SKILL>
</GROUP>
ie a number of GROUPS each of which contain any number of SKILLS.
The "div" block on the right is initially empty. On clicking on a branch/node in the left hand tree, I want that node/branch added to to the 'tree' on the right. If a branch's node doesn't exist in the right hand tree when a branch is clicked then the branch will need to be added as well.
Clicking on a branch/node in the right hand tree simply removes it from the tree.
Finally, at any time I need to be able to get a list of the (group id, skill id) currently in the right hand tree.
As I say ... I know it's a long shot but does anyone know if the above is possible ?? Or better still got any pointers as to where to start/sample code/working examples ??
TIA for any help.
Regards,
Adam Brunt