![]() |
High Performance Xml parser
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 |
RE: High Performance Xml parser
An XML text reader will be the fastest way to read through it I think but its
going to be slow anyway to move through that much XML, I would suggest getting them cut up at source and if that isnt possible then explain what you want to do with the information in them for a more detailed suggestion. HTH Ciaran O'Donnell http://wannabedeveloper.spaces.live.com "rony_16" wrote: > 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 > > |
Re: High Performance Xml parser
Hey Rony,
Wow! 1 GB XML? That's a lot of XML! Is it possible to try and trim down the XML files at source to be more manageable? I'm not sure you can find a parser faster than the XML reader, and if you do I doubt it will be significantly faster. On 27 Nov 2006 09:14:39 -0800, "rony_16" <rony.vainblat@gmail.com> wrote: >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 -- Bits.Bytes. http://bytes.thinkersroom.com |
Re: High Performance Xml parser
the XmlReader is a forward only cursor pretty simular to Sax.
-- bruce (sqlwork.com) "rony_16" <rony.vainblat@gmail.com> wrote in message news:1164647679.894982.110690@f16g2000cwb.googlegr oups.com... > 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 > |
| All times are GMT. The time now is 11:29 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.