Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Arulraj
2k
166
13.3k
SpeedUp XML File Reading In POCKET PC
Jul 1 2010 11:02 AM
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
Reply
Answers (
0
)
Get PDA MacAddress
How to write Unit test cases in Visual studio 2008/2010