Groups | Blog | Home
all groups > dotnet xml > september 2006 >

dotnet xml : Define a development approach to Parse/Load/Search an XML document of size ~1GB


Sandeep Akhare
9/26/2006 12:42:10 AM

Hi All
i have given a problem set in which i need to parse/load/search a xml
document of near about 1 GB in dot net. Please help me in this also do
not have the luxury to dump the data into a relational database


Sandeep

Martin Honnen
9/26/2006 2:23:54 PM


[quoted text, click to view]


[quoted text, click to view]

XmlReader (respectively XmlTextReader in .NET 1.x) parses XML of any
size in a forwards only pull parsing mode node by node so memory
consumption by the reader is constant, it does not increase with the
size of the input XML. You probably somehow want to parse out values and
store them so your own code doing that will consume more memory if the
XML grows but the .NET API to use is XmlReader/XmlTextReader.


--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button