Hi
I have a database that looks like this....
NodeID ParentNodeID Text NavigateUrl
1 books #
2 1 book 1 page.aspx
3 1 book 2 page.aspx
4 3 pockets page.aspx
5 4 book 3 page.aspx
6 4 book 4 page.aspx
I would like to create a xml file from this with the following layout...
<?xml version="1.0" encoding="ISO-8859-1"?>
<Nodes>
<TreeViewNode ID="4" Text="books">
<TreeViewNode ID="2" Text="book 1" NavigateUrl="page.aspx"></TreeViewNode>
<TreeViewNode ID="3" Text="book 2" NavigateUrl="page.aspx"></TreeViewNode>
</TreeViewNode>
<TreeViewNode ID="5" Text="pockets">
<TreeViewNode ID="5" Text="book 3" NavigateUrl="page.aspx"></TreeViewNode>
<TreeViewNode ID="6" Text="book 4" NavigateUrl="page.aspx"></TreeViewNode>
</TreeViewNode>
</Nodes>
I have no idea how to solve this, could anyone help me out here?
Regards
I have a database that looks like this....
NodeID ParentNodeID Text NavigateUrl
1 books #
2 1 book 1 page.aspx
3 1 book 2 page.aspx
4 3 pockets page.aspx
5 4 book 3 page.aspx
6 4 book 4 page.aspx
I would like to create a xml file from this with the following layout...
<?xml version="1.0" encoding="ISO-8859-1"?>
<Nodes>
<TreeViewNode ID="4" Text="books">
<TreeViewNode ID="2" Text="book 1" NavigateUrl="page.aspx"></TreeViewNode>
<TreeViewNode ID="3" Text="book 2" NavigateUrl="page.aspx"></TreeViewNode>
</TreeViewNode>
<TreeViewNode ID="5" Text="pockets">
<TreeViewNode ID="5" Text="book 3" NavigateUrl="page.aspx"></TreeViewNode>
<TreeViewNode ID="6" Text="book 4" NavigateUrl="page.aspx"></TreeViewNode>
</TreeViewNode>
</Nodes>
I have no idea how to solve this, could anyone help me out here?
Regards