?
Solved

Timeout  In loading large XML file

Posted on 2013-05-26
3
Medium Priority
?
293 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 1500 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 30

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 30

Expert Comment

by:anarki_jimbel
ID: 39198502
Wrong post, sorry
0

Featured Post

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

801 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