Victor,
Thank you very much for the code.
>
Can someone give me a direction or a small sample code (in C# or VB .NET) for the following:
>
>I have a simple web page (ASP.NET) which has 2 or 3 textboxes. When user clicks on Submit button I want to add values from the text boxes to an XML file. If you know of a white paper or a article which describes how to do what I want, please let me know.>
>
Here something to get you started - just cut and paste onto a console app:
>
>>using System;
>using System.Xml;
>
>// Console Application
>class XMLSample
>{
> static void Main()
> {
> XmlDocument oXml = new XmlDocument();
> XmlElement oRoot = oXml.CreateElement("RootNode");
> oXml.AppendChild(oRoot);
> for(int i=1;i<10;i++)
> {
> XmlElement oChild = oXml.CreateElement("ChildNode");
> oChild.InnerText = "The text between the tags";
> oRoot.AppendChild(oChild);
> }
>
> Console.WriteLine(oRoot.OuterXml);
> }
>}
>
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham