High Performance Xml parser

  • Thread starter Thread starter rony_16
  • Start date Start date
R

rony_16

Hi,
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#.

Regards, Rony
 
Hello rony_16,

r> I am looking for component which allows me to parse my xml file.
r> the reason i am asking this, is because my xml files are huge it can
r> reach as far as 1GB more or less.
r> the time to parse such a file is something like 5 Hours.
r> Now i am using the XmlRead, XmlNode ... (I do not load the file to
r> the
r> memory).
r> Can you suggest better components to use?

For .NET Xml text reader is the fastest .NET way, especially in .NET 2.0
The statistic of the unmanaged parsers are there http://piccolo.sourceforge.net/bench.html

r> ** I tried SAX but i couldn't understand how it works, because there
r> is
r> no examples for .net , and very bad documentation.
r> p.s : I am writing in C#.

..NET 2.0 has no SAX realization. XmlTextReader is the pull based model, not
the push (SAX).
Btw, see there http://search.live.com/results.aspx?q=SAX+parser+.NET some
of SAX realizations for .NET

---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Hello Samuel,

Have never met this, but eager to see results.

If nobody gives u the answer, I think that the best idea is to ask http://www.stylusstudio.com/xmldev/
guys directly or via their mailgroup
I've been working with their XML/XSLT tools which allow to select the any
kind of parser (.NET/C++/Java) for you work
I think that they performed such test and can give u some info about it

SN> On Mon, 27 Nov 2006 18:46:12 +0000 (UTC), Michael Nemtsev
SN> Is there a benchmark comparing these parsers to .NET's XML parser?
SN>
SN> Thanks,
SN>
SN> Sam
SN>
SN> ------------------------------------------------------------ We're
SN> hiring! B-Line Medical is seeking Mid/Sr. .NET Developers for
SN> exciting positions in medical product development in MD/DC. Work
SN> with a variety of technologies in a relaxed team environment. See
SN> ads on Dice.com.
SN>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Back
Top