In this blog we will know how to save data to an xml file and retrieve the data to a Gridview.Here we have to provide one value in the Xml file manually as
Data.xml
<?xml version="1.0"
standalone="yes"?>
<studentdata>
<student>
<sid>s001</sid>
<sname>Raj</sname>
<saddress>Pune</saddress>
<smarks>100</smarks>
</student>
</studentdata>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Saving_User_Input_Data_to_an_XML._Default"
%>
<!DOCTYPE html
PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
<asp:Label ID="Label1" runat="server"
Text="Student
Id" Width="100px"></asp:Label>
<asp:TextBox
ID="TextBox1"
runat="server"></asp:TextBox><br />
<asp:Label
ID="Label2"
runat="server"
Text="Student
Name" Width="100px"></asp:Label>
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><br />
<asp:Label
ID="Label3"
runat="server"
Text="Student
Marks" Width="100px"></asp:Label>
<asp:TextBox
ID="TextBox3"
runat="server"></asp:TextBox><br />
<asp:Label
ID="Label4"
runat="server"
Text="Student
Address"></asp:Label>
<asp:TextBox
ID="TextBox4"
runat="server"></asp:TextBox>
</div>
<br
/>

vijay krishPosted Feb 15, 2013, 2:17 AM
like this can u save data to xml file and retrieve data from dat xml file in mono for android ...its very urgent to me...m working on mono for android...so,i wanna store my data to xml file ..m very new to mono..plz explain step by step... thanks in advance....