I have a rather large document consisting of the following elements:

<trdMsg>
  <msgHdr>
  ...
  ...
  </msgHdr>
  
  <block>
  ...
  ...
  </block>

  <alloc>
  ...
  ...
  </alloc>
  <alloc>
  ...
  ...
  </alloc>
  <!-- allocs could be repeating 10000 times -->
</trdMsg>

I just want to peek into the msgHdr. Currently I am using SAXParser to parse 
the whole document. Is there a way to just extract out msgHdr w/o parsing all 
the remaining elements? I guess just stop the SAX parsing after the msgHdr, but 
is this efficient if internally some producer thread is merrily parsing ahead?

Thanks a lot!
Vijay



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to