You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Nedelcho Stanev <ns...@syntrex.com> on 2002/04/03 14:23:27 UTC

parsing of big files

Hello all,

may be any can help me with this situation
i must parse very big xml file with xerces.
the xml is something like
<element attr1=xx...?
  <tag1>
    data
  <tag2>
</element>
..
..
<element>
 <data>
  ....
  very large data block
  </data>
</element>

so, i want to get this large block on portions
and my question is 
can i do parsing until a go to big chunk
after this simply read data 
and continue parsing from </data> to the end of xml , or to the next portion of data.
i see methods parseFirst/Next in Sax , but really don't have idea
how to do this

decho

Re: parsing of big files

Posted by Tinny Ng <tn...@ca.ibm.com>.
You may find more information about progressive parse from http://xml.apache.org/xerces-c/pparse.html and http://xml.apache.org/xerces-c/migrate_archive.html#Progressive.

Please also refer to our sample PParse (samples/pparse/pparse.cpp)

Thanks!

Tinny
  ----- Original Message ----- 
  From: Nedelcho Stanev 
  To: xerces-c-dev@xml.apache.org 
  Sent: Wednesday, April 03, 2002 7:23 AM
  Subject: parsing of big files


  Hello all,

  may be any can help me with this situation
  i must parse very big xml file with xerces.
  the xml is something like
  <element attr1=xx...?
    <tag1>
      data
    <tag2>
  </element>
  ..
  ..
  <element>
   <data>
    ....
    very large data block
    </data>
  </element>

  so, i want to get this large block on portions
  and my question is 
  can i do parsing until a go to big chunk
  after this simply read data 
  and continue parsing from </data> to the end of xml , or to the next portion of data.
  i see methods parseFirst/Next in Sax , but really don't have idea
  how to do this

  decho