SpeedUp XML File Reading In POCKET PC
Hai friends...
I reading data from xml (1.5 MB Size) but it takes lot of time in pocket pc.
I want to speed up the xml file reading process.
Sample Coding
DataSet ds = new DataSet();
XmlReader xr = XmlReader.Create("\\My Documents\\AllImaster.xml");
ds.ReadXml(xr);
DataView dview = new DataView(ds.Tables[0]);
dview.Sort = "Deptcode ASC";
dview.RowFilter = "DEPTCODE=" + deptcode;
if (dview.Count > 0)
{
DataTable dt = dview.ToTable();
dcImaster.Items.Clear();
dcImaster.Items.Add("");
foreach (DataRow dr in dt.Rows)
{
dcImaster.Items.Add(dr["itemcode"] + "-" + dr["itemname"] + "-" + dr["unitprice"]);
}
dt.Dispose();
ds.Dispose();
}
Above is the my sample coding. It takes more time to read the xml file.
Please help like any other method are available in compact framework to read xml data and to store in dataset.
Thanks in advance