TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Arulraj
1.6k
168
13.9k
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