473,587 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Writing records from xml file into dataset

Hi All,

I have an XML file with 50000 records, when i am trying to write into
DataSet through DataSet.ReadXml ("C:\..\Custome r.xml"). It takes more
than 30 minutes to write all records into DataSet. This affects lot
on my application performance. Is there any alternative to increase
the performance & reduce the time taken for writing...

Thanks in advance :-)
Jun 27 '08 #1
2 1056
"Deshi" <de*****@gmail. comwrote in message
news:51******** *************** ***********@c19 g2000prf.google groups.com...
I have an XML file with 50000 records, when i am trying to write into
DataSet through DataSet.ReadXml ("C:\..\Custome r.xml"). It takes more
than 30 minutes to write all records into DataSet. This affects lot
on my application performance. Is there any alternative to increase
the performance & reduce the time taken for writing...
Is this a one-off exercise, or something you need to do on a regular
basis...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
On May 6, 2:42*pm, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"Deshi" <desh...@gmail. comwrote in message

news:51******** *************** ***********@c19 g2000prf.google groups.com...
I have an XML file with 50000 records, when i am trying to write into
DataSet through DataSet.ReadXml ("C:\..\Custome r.xml"). It takes more
than 30 minutes to write all records into DataSet. This affects *lot
on my application performance. Is there any alternative to increase
the performance & reduce the time taken for writing...

Is this a one-off exercise, or something you need to do on a regular
basis...?

--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Hi mark,

Now it seems to be bit ok with the performance, I am using
XmlTextReader API to read nodes comparativelly its much faster than
DataSet.ReadXml ()

Regards,
Deshi...
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2757
by: VMI | last post by:
I'm having trouble writing several records from an XML file into an html file. The problem is that it only outputs one record to the html file. I need to export all the records in the xml file to html. How can I do this? Is there a better (and easier) way to export a dataset to a 'friendly-printer' format? The resulting XML file is hard to...
4
2194
by: Mike Hnatt | last post by:
My goal is to get data from an XML file into a couple of tables in an Access database. The XML file is a little complex so I need control over what I do (I can't just read it into a dataset). The way I have it now is ennumerating through my XML file and for each record, running an INSERT INTO SQL statement to put the values in the...
5
1181
by: Paul | last post by:
Hello, I have a dataset which i'm loading from an xml file (using ds.ReadXml() ) and I'm wondering how I can write back only the changed records to the xml file instead of saving the whole file back to disk. Thanks, Paul
8
1330
by: Paul | last post by:
I have an application that I am tryign to modify, I never wrote the original so need help with my modifications. Currently the app reads and writes to an Access database with one table 'pupils' I would like to keep this table but only ever update the records in this table, but at the same time when I create a new record it puts the current...
5
5062
by: UJ | last post by:
I have a system that has five programs that all communicate with each other via Message Queues. Works well. One program is a watchdog that will make sure the others are up and going. Currently I have it store info it gets from when the programs check in into a DataSet (XML file). Problem is, that file now has to be used by other programs to...
0
1926
by: sparty1022 | last post by:
Read many of the posting but still doen't understand the process. I have a dataset with child records. I have a specific XML "Account.XSD" format that I need to write this out to. How do I marry these (2) items to create the output file. Dim dataSet As DataSet = New DataSet("AccountRecord") PremisesAdapter.Fill(dataSet, "Premises")...
5
1512
by: slinky | last post by:
I'm struggling with what should be a very basic .aspx/XML issue. I have an XML file. I have a textbox for a user to enter data and a button to submit the data. I don't wont the user to see the other records on the screen. I'm using Visual Web Developer Express 2005, vb.NET) I've tried several different strategies from books and online...
3
1660
by: maw | last post by:
Hi, could somebody point me in the right direction for adding, removing and modifying nodes in an xml file programatically using vb.net (.net framework 2.0)? I have an xml file in the following format which I need to be able to add and remove records from. (I can not change this xml file format.) <country name="United Kingdom"> <city...
1
2993
by: =?Utf-8?B?ZmhpbGxpcG8=?= | last post by:
We have a code snippet that downloads data to Excel. it is writing row by row. This causes a performance issue. Any ideas on how to speed this up will be appreciated. Please find below an excerpt of the code: #region Method:WriteToExcel /// <summary> /// <para>Description : Method is used to Write the records into excel</para>
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.