469,299 Members | 2,073 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

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 2885

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.