Creating an XML File
-
Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"
First of all, it is not the Windows Forms part of the .NET framework that deals with XML. The XML classes are found in System.Xml namespace (although access to Xml files can also be made through the System.Data classes if they are database-like. Did you try searching CodeProject? I found the following articles that explain different ways of dealing with XML files: Reading an XML file using .NET[^] XML Data Files, XML Serialization, and .NET[^] Load and Save objects to XML using serialization[^] XMLFoundation[^] XML Serialization in .NET[^] --Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
-
Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"
Daljv, Here is an article I wrote which does all of the things you want to do programatically in C# in a windows application. http://codeproject.com/csharp/CSPersonalOrganizer1.asp Good Luck ;P