Solved

Timeout  In loading large XML file

Posted on 2013-05-26
3
287 Views
Last Modified: 2013-06-04
I am doing task of loading  xml file ( which Exist in Physical Path on my Pc For Example D:/MyXmlDemo/17.xml) to XmlDataDocument, but every time I am getting error:

The operation has timed out

The code is as follows, The url containing the xml feeds , I want to load it into xmlDoc.

XmlDataDocument xmlDoc = new XmlDataDocument();
xmlDoc.Load("D:/MyXmlDemo/17.xml");

Note : the File Size = 80 MB
Please suggest any solution.
0
Comment
Question by:wael_shehab
  • 3
3 Comments
 
LVL 29

Accepted Solution

by:
anarki_jimbel earned 500 total points
ID: 39198256
First, I'd read the following article:
http://msdn.microsoft.com/en-us/library/ff647804.aspx

The thing is that your xml is really large. Memory footprint can be substantially bigger. What is your computer specification? Especially memory?


I'd probably use xml reader class but in this case you may need to write quite a lot of code to parse the xml.
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39198276
You may be also interested in the following approach but unfortunately I can't tell you much about this:

http://james.newtonking.com/archive/2007/12/11/linq-to-xml-over-large-documents.aspx
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39198502
Wrong post, sorry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now