473,465 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XML Editing,inserting and deleting Question

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>


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
0 1416

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dan Weeb | last post by:
Hi All, I have struggled through this far with help from many of you so thanks. I am stuck again. I am really new to this so don't be harsh :-) There are a few problems. You can run the script...
2
by: Marcus Smaby | last post by:
With the rich IDE on VB.net 2003, I was wondering if there is an easy way to set the event handler function for a hand-coded object (SqlConnection for example). I know that if I dim it withevents I...
2
by: Ryan | last post by:
I have an SP which I use to insert into a table data from another. For example... INSERT INTO myWorkTable (Field1, Field2) SELECT myField1, myField2 FROM
4
by: Jerry Khoo | last post by:
i am currently working on an assignment that requires the program to manage the files like editing file content, modifying file content, and deleting file contents. My question is what sort of...
3
by: Joachim Klassen | last post by:
Hi all, first apologies if this question looks the same as another one I recently posted - its a different thing but for the same szenario:-). We are having performance problems when...
2
by: Clark Stevens | last post by:
Hi. This should be so easy, but I don't get it. Let say I have RichTextbox1 and I want to insert some text at the current insertion point, or at the beginning of selected text (if there is any). ...
1
by: yuchang | last post by:
Hi, Using the FormView control is very efficient. But I want to do some action,like showing a success message or redirect to another page, after inserting, updating and deleting. How do I get...
0
by: tom c | last post by:
I am going through "Walkthrough: Editing and Inserting Data in Web Pages with the DetailsView Web Server Control" found at http://msdn2.microsoft.com/en-us/library/sdba1d59.aspx I am using...
12
by: desktop | last post by:
Why does insert only work when specifying an iterator plus the object to be inserted: std::vector<intt; std::vector<int>::iterator it; it = t.begin(); t.insert(it,33); If I use push_back...
7
by: Sanchit | last post by:
I want to know thta how can i edit a file in C For Example my file is Mr XyZ FFFFFF 65 And now i want go change this number 65 to 87.... how can i Do this..... I dont...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.