Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Timeout  In loading large XML file

Posted on 2013-05-26
3
Medium Priority
?
297 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Screencast - Getting to Know the Pipeline

610 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