Click to See Complete Forum and Search --> : sax parser - stop parsing?


ergas
November 21st, 2003, 10:57 AM
Is it possible in SAX to stop parsing at some tag, and to receive XML file as text - until matching close tag?

example:
<DOC>
<A>
<B>some data</B>
<B>more data</B>
</A>
</DOC>

I would like, while parsing a document, to swithch-of parsing at the element A.
As a content of element A, I would like to recive a string:
"<B>some data</B><B>more data</B>" without actually parsing B elements, or any other elements inside <A> tags.

Any ideas?