rony wrote:
I am looking for component which allows me to parse my xml file.
the reason i am asking this, is because my xml files are huge it can
reach as far as 1GB more or less.
the time to parse such a file is something like 5 Hours.
Now i am using the XmlRead, XmlNode ... (I do not load the file to the
memory).
Can you suggest better components to use?
** I tried SAX but i couldn't understand how it works, because there is
no examples for .net , and very bad documentation.
p.s : I am writing in C#.
XmlNode in the .NET framework is part of .NET's DOM implementation thus
if you use XmlNode then your code is loading the XML in memory, or at
least part of it depending on what exactly your code does.
With .NET you have XmlReader for fast forwards only pull parsing, that
is the best approach the .NET framework has to offer for parsing such
large files. With the XmlReader the memory/resource consumption should
not increase with the size of the XML as the reader pulls in the XML
node by node.
I think microsoft.public.dotnet.xml is a better place to discuss .NET
specific questions on parsing XML.
--
Martin Honnen
http://JavaScript.FAQTs.com/