Editing an XML node (C#)
-
Hello, We are building a windows desktop application using C# that reads in an xml file, to create a user interface. The user then enters values into the user interface. We want to be able to save an xml file with the same schema as the original xml file, but with the users entered values into it. Here is a simple example as part of input document: Needs Cleaning radio yes no We would want the output document to contain: Needs Cleaning radio yes yes no or perhaps Needs Cleaning text yes We aren't too adept at xmlTextReaders and xmlTextWriters yet, and have been doing some research in Google. There was an interesting article that seemed pertinent to this, but it dealt with C++ : http://www.codeproject.com/csharp/dcinsertxml.asp Any help would be appreciated. Thank you! Anne
-
Hello, We are building a windows desktop application using C# that reads in an xml file, to create a user interface. The user then enters values into the user interface. We want to be able to save an xml file with the same schema as the original xml file, but with the users entered values into it. Here is a simple example as part of input document: Needs Cleaning radio yes no We would want the output document to contain: Needs Cleaning radio yes yes no or perhaps Needs Cleaning text yes We aren't too adept at xmlTextReaders and xmlTextWriters yet, and have been doing some research in Google. There was an interesting article that seemed pertinent to this, but it dealt with C++ : http://www.codeproject.com/csharp/dcinsertxml.asp Any help would be appreciated. Thank you! Anne
The article you are referring to (http://www.codeproject.com/csharp/dcinsertxml.asp[^]) is written using C#! -- modified at 18:57 Wednesday 19th April, 2006
-
Hello, We are building a windows desktop application using C# that reads in an xml file, to create a user interface. The user then enters values into the user interface. We want to be able to save an xml file with the same schema as the original xml file, but with the users entered values into it. Here is a simple example as part of input document: Needs Cleaning radio yes no We would want the output document to contain: Needs Cleaning radio yes yes no or perhaps Needs Cleaning text yes We aren't too adept at xmlTextReaders and xmlTextWriters yet, and have been doing some research in Google. There was an interesting article that seemed pertinent to this, but it dealt with C++ : http://www.codeproject.com/csharp/dcinsertxml.asp Any help would be appreciated. Thank you! Anne
If you are using .NET Framework 2.0, this may be helpful: http://www.15seconds.com/issue/050601.htm[^]
-
Hello, We are building a windows desktop application using C# that reads in an xml file, to create a user interface. The user then enters values into the user interface. We want to be able to save an xml file with the same schema as the original xml file, but with the users entered values into it. Here is a simple example as part of input document: Needs Cleaning radio yes no We would want the output document to contain: Needs Cleaning radio yes yes no or perhaps Needs Cleaning text yes We aren't too adept at xmlTextReaders and xmlTextWriters yet, and have been doing some research in Google. There was an interesting article that seemed pertinent to this, but it dealt with C++ : http://www.codeproject.com/csharp/dcinsertxml.asp Any help would be appreciated. Thank you! Anne
Lookup usage of the "innerxml" property of the entry elements when recieving the returned data. "Every new day begins with possibilities. It's up to us to fill it with things that move us toward progress and peace.” (Ronald Reagan)