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

Home Posts Topics Members FAQ

How can I edit this XML info?

3 New Member
Basically, all i want to do is change the classifcation_value = "SFI123490" . Can anyone lead me in the right direction? I am a VB.Net developer but can read other languages. I have been changing elements with SelectSingleNode, but I don't know how to grab hold of this type of data.

<classifications>
<classification classification_definition_id="1" classification_value="000" />
<classification classification_definition_id="2" classification_value="16" />
<classification classification_definition_id="3" classification_value="SFI123490"/>
<classification classification_definition_id="4" classification_value="2007-05-03 12:31:35" />
<classification classification_definition_id="9" classification_value="126" />
<classification classification_definition_id="102" classification_value="500" />
</classifications>
Jun 15 '07 #1
3 1115
dorinbogdan
839 Recognized Expert Contributor
Welcome to TheScripts TSDN....

Try this way:
Expand|Select|Wrap|Line Numbers
  1. Dim node as XMLNode = xmldoc.SelectSingleNode("classifications/classification[@classification_definition_id=3]");
  2.  
  3. node.Attributes.GetNamedItem("classification_value").InnerText = SFI99999;
  4.  
Also see this link.
Jun 15 '07 #2
Curtis360it
3 New Member
But how do I single out that particle classification out of all of them?
Jun 15 '07 #3
Atli
5,058 Recognized Expert Expert
Forgive me if this sounds stupid but, couldn't you just turn it all into a string and use the String.Replace() method? I mean you will output it somewhere eventually right?
Jun 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
2
by: Sky | last post by:
Hello: Another question about trying to wring functionality from a DataGrid... Have a DB table of "Contacts" -- 14 or more fields per record Show in datagrid -- but only 5 columns (First,Last,...
0
by: Adam Knight | last post by:
Hi all, I have two nested DataLists. When I click edit in the parent list the edit comand executes and the required Edit Item Template is displayed. The child list is display in the...
2
by: Sin | last post by:
Hello everyone, I'm totally stumped at how little info I can find in MSDN or on the web concerning this. It's almost as if only microsoft personel hold the key to these secrets or something!!! ...
4
by: WayneM | last post by:
Is there a Edit and Continue capability in VB.NET yet? I realize it may not be the same as VB6, but I thought there was going to be some form of this? Thanks for any info, WayneM
8
by: sara | last post by:
I have a table where a few of the users entered vendor names ALL IN UPPER CASE. I have created forms to edit the data, but I can't seem to allow changing JOE SMITH to Joe Smith. What to I have...
3
by: zbenta | last post by:
Hi you guys. I need some help with a program I've written. I can not seam to find the reason for the error that ocurrs. But let me explain. I have a txt file that works as a database to store...
13
by: nicolegw | last post by:
I've tried googling for the answer to my question, so my apologies if it's been asked before or is terribly obvious. I'm a volunteer doing data entry for research. My office has an Access...
3
by: nuttynibbles | last post by:
im doing a edit profile page. the page would pull out data frm mysql and populate the forms respectively. user will edit and update their profile. The page would then validate the value in the...
2
by: slinky | last post by:
I had a successfully deployed datagrid reading an XML file and showing the data: Private Function MakeDataView() as DataView Dim myDataSet As New DataSet()...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
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: 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: 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 ...

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.