473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C# (xml) Editing a single element within a node

1
Hello,

I currently have a form that reads through an xml file and displays information based on the object selected in the combobox.

I can read the information from the xml just fine, but editing and saving the information is where I'm having trouble at.

xml file:

<Objects>
<Object name="Square">
<Height>15</Height>
<Width>15</Width>
<Color>red</Color>
<Object name="Circle">
<Radius>10</Radius>
<Hollow>True</Hollow>
<HollowRadius>5</HollowRadius>
<Color>blue</Color>
</Objects>


How would I change the "Sqaure" objects height value?
or
How would I change the "Circle" objects hollow value to false?

Thanks
Apr 1 '08 #1
1 1409
nateraaaa
663 Expert 512MB
See this thread.

http://bytes.com/forum/thread171944.html

Nathan
Apr 1 '08 #2

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

Similar topics

11
by: vdavidster | last post by:
Hello everyone, I want to convert a tuple to a list, and I expected this behavior: list(('abc','def')) -> list(('abc')) -> But Python gave me this behavior: list(('abc','def')) ->
5
by: Tim | last post by:
I've been working on this for over a week now, and just can't get this figured out. Hoping one of you gurus can help me out here. I have an xml data island that I'm representing on an htm page as...
3
by: David Norman | last post by:
How can I create an xml schema where both of the following documents are valid? <theElement> <child>some text</child> </theElement> and <theElement>1234</theElement>
3
by: Ben Fidge | last post by:
Is is possible to make just a single page within an ASP.NET application use SSL? I've written an e-commerce application and want to make just the checkout page use SSL for secure transmission. ...
9
by: Stephen | last post by:
OK, I have filled a DataSet with an SqlDataAdapter and I just want the data in one column of one row. How can I do this since the following gives me the infamous 'Object reference not set to an...
0
by: M Skabialka | last post by:
I have been working for a while on a new project and suddenly get this warning, without knowing what I have done to trigger it. The form is simple, with a data adapter. The...
12
abdoelmasry
by: abdoelmasry | last post by:
HI men im trying To get xml file conetent To insert to database xml parser functions couldn't get single element from xml file it's return all start elements , end elements and data elements...
1
by: asibin2000 | last post by:
I'm having problems with a VB.NET application. We have multiple web applications and we are using a VB.NET program to do a sort of Single Sign On. So this works great, the system automatically...
12
by: Aaron Gray | last post by:
In FF you can define the following ... Element.prototype.getClass = function() { return this.className; /* or whatever */ } Element.prototype.setClass = function(c) { this.className = c; } ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.