Solved

Timeout  In loading large XML file

Posted on 2013-05-26
3
282 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

16 Experts available now in Live!

Get 1:1 Help Now