XML Editing,updating,deleting Question!

Discussion in 'ASP .Net' started by =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Nov 24, 2004.

  1. I have a XML file which is formed !
    And its used with a treeView menu control.
    But the thing is that the TREEVIEW hasn't got a constant hieracrchy structure!
    which is difficult to Edit,insert or update!
    Whats the best way to provide such functionality for a XML that isn't well
    structured!
    My xml looks like this:-
    <?xml version="1.0" encoding="utf-8"?>
    <TREENODES>
    <TreeNode Text="Contract">
    <TreeNode Text="Test" NavigateUrl="a.aspx" target="_blank"/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    <TreeNode Text="Human Resources">
    <TreeNode Text="Forms">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    <TreeNode Text="Time Sheets">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    <TreeNode Text="Time Sheet Admin">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    </TreeNode>
    <TreeNode Text="Product Information">
    <TreeNode Text="Crazy Johns Insurance">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    </TreeNode>
    <TreeNode Text="Reports">
    <TreeNode Text="Data Warehouse OLAP new" NavigateUrl="a.aspx"
    target=""/>
    <TreeNode Text="FTE and Commission Reports">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    <TreeNode Text="Target Reports">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    </TreeNode>
    <TreeNode Text="Retail">
    <TreeNode Text="Authorised Web Access List" NavigateUrl="a.aspx"
    target=""/>
    <TreeNode Text="Links to other web sites">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    </TreeNode>
    <TreeNode Text="Telesales">
    <TreeNode Text="Enable"/>
    <TreeNode Text="Telstra Marketing CD search by number"/>
    </TreeNode>

    <TreeNode Text="Other">
    <TreeNode Text="Person/Store Enquiry">
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    <TreeNode Text="" NavigateUrl="a.aspx" target=""/>
    </TreeNode>
    <TreeNode Text="Store Locator" NavigateUrl="a.aspx" target=""/>
    </TreeNode>

    </TREENODES>
     
    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Nov 24, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. adam222
    Replies:
    3
    Views:
    3,727
    Christopher Reed
    Jan 18, 2006
  2. John
    Replies:
    1
    Views:
    367
  3. Mike P
    Replies:
    0
    Views:
    609
    Mike P
    Aug 3, 2006
  4. Harry Barker
    Replies:
    2
    Views:
    521
    Alf P. Steinbach
    Apr 19, 2006
  5. crea
    Replies:
    2
    Views:
    417
    Nobody
    Dec 28, 2012
Loading...

Share This Page