473,512 Members | 15,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating XML document in VB .NET

Baz
I am trying to write a program to perform a simple update to an XML
document. Unfortunately I can find no example on the web, all I want to
do is add an extra node.

Here is the code I have written to open and scan the document:-

Dim lXML As New Xml.XmlDocument
Dim lXMLnode As Xml.XmlNode
Dim lXMLnodelist As Xml.XmlNodeList

lXML.Load("C:\Program Files\Philips\ProntoEdit
NG\PCFs\ConfigEdit.xml")
lXMLnodelist = lXML.SelectNodes("*")
For Each lXMLnode In lXMLnodelist
Debug.Write(lXMLnode.Name)
If lXMLnode.HasChildNodes Then
Debug.Write(lXMLnode.FirstChild.Name)
' Code to be added here to add node

End If
Next

I am a COBOL programmer of 15 years and have recently learnt a
reasonable amount of VB and I am now trying to learn VB .NET.

Help in solving this issue with a simple example and also details of
good plain speaking resources would be greatly appreciated.

Baz

Nov 21 '05 #1
0 853

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

Similar topics

11
16077
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
1
1758
by: Tommy | last post by:
Hi, I have 3 frames. One to let the user input a URL, one to display the page of that URL and one to display some info on that page (including all the links of the page). The problem is that...
2
1654
by: m | last post by:
hi all, got an interesting problem: im working with purchase orders and in detail line i have a date field. so for example: header line: PO code: X123 PO value: ...
3
1782
by: Jim Cobban | last post by:
I have a set of web pages that are organized in pairs. One of each pair contains a graphic and the other is an extended description of the graphic. I am trying to set it up that selecting a single...
14
2913
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
2
2251
by: Rob Long | last post by:
Hi I have an HTML select element in my page and it's multiple property is disabled (one item at a time mode) but I still want to transfer all the items in the select to the server when the form...
15
5850
by: webstormcomputers | last post by:
I'm trying to update a hidden field with java script and I'm only getting one of the values from my select stament. Here is the code below. <select name="on0"> <option value="25">25 <option...
1
1207
by: mrtm3050 | last post by:
I want to try to update a pre-existing html page by adding a certain tag <option> within a <select> tag. The code used below: function showDuplicate() { if (!newWin || newWin.closed){ newWin...
5
5330
by: rosaryshop | last post by:
I'm working a jewelry/rosary design web site at http://www.rosaryshop.com/rosariesAndKits2.php. As the user makes selections, it updates images of various parts, giving them a preview of the...
2
5685
by: =?Utf-8?B?TUNN?= | last post by:
I have an asp.net page that contains an update panel. Within the update panel, controls get added dynamically. During partial page post backs the controls within the panel will change. I have a...
0
7371
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
7093
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
5676
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,...
1
5077
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
4743
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
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.