Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > XML Editing,updating,deleting Question!

Reply
Thread Tools

XML Editing,updating,deleting Question!

 
 
=?Utf-8?B?UGF0cmljay5PLklnZQ==?=
Guest
Posts: n/a
 
      11-24-2004
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>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Print XML parsing to JspWriter (out) Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParser with modifiers "protected" Per Magnus L?vold Java 0 11-15-2004 02:27 PM
embedding xml in xml as non-xml :) Mark Van Orman XML 5 09-15-2004 05:57 AM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM
Help on including one XML document within another XML document using XML Schemas Tony Prichard XML 0 12-12-2003 03:18 PM



Advertisments