472,133 Members | 1,302 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

XML File Size & Memory

Hi All,

I have an xml file that is 63mb in size. If I were to load this file
into memory, will it consume 63mb of memory or will it consume more than
that?

Thanks,
Roshawn
Nov 12 '05 #1
2 2964

That depends on how you're planning to load that document. If you are
loading it into an XmlDocument or an XPathDocument object then it will
consume more memory than the size of the file.

If you simply walk the document with and XmlTextReader then it will
consume less memory.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: Roshawn Dawson [mailto:ud****@bellsouth.net]
Posted At: Tuesday, December 28, 2004 1:46 PM
Posted To: microsoft.public.dotnet.xml
Conversation: XML File Size & Memory
Subject: XML File Size & Memory

Hi All,

I have an xml file that is 63mb in size. If I were to load this file
into memory, will it consume 63mb of memory or will it consume more than that?

Thanks,
Roshawn


Nov 12 '05 #2
Thanks a lot Chris. That just what I needed to hear. Now to do further
research... :-)

Roshawn

Christoph Schittko [MVP] wrote:
That depends on how you're planning to load that document. If you are
loading it into an XmlDocument or an XPathDocument object then it will
consume more memory than the size of the file.

If you simply walk the document with and XmlTextReader then it will
consume less memory.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: Roshawn Dawson [mailto:ud****@bellsouth.net]
Posted At: Tuesday, December 28, 2004 1:46 PM
Posted To: microsoft.public.dotnet.xml
Conversation: XML File Size & Memory
Subject: XML File Size & Memory

Hi All,

I have an xml file that is 63mb in size. If I were to load this file
into memory, will it consume 63mb of memory or will it consume more


than
that?

Thanks,
Roshawn


Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Phil Powell | last post: by
4 posts views Thread by Xah Lee | last post: by
1 post views Thread by Phil Price | last post: by
16 posts views Thread by Claudio Grondi | last post: by
18 posts views Thread by MisterE | last post: by
reply views Thread by leo001 | last post: by

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.