High Performance Xml parser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rony_16

    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

  • Ciaran O''Donnell

    #2
    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
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }


    "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
    >
    >

    Comment

    • Rad [Visual C# MVP]

      #3
      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.

      Comment

      • bruce barker \(sqlwork.com\)

        #4
        Re: High Performance Xml parser

        the XmlReader is a forward only cursor pretty simular to Sax.

        -- bruce (sqlwork.com)


        "rony_16" <rony.vainblat@ gmail.comwrote in message
        news:1164647679 .894982.110690@ f16g2000cwb.goo glegroups.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
        >

        Comment

        Working...