On 3 Þëè, 15:30, Martin Honnen <mahotr...@yahoo.de> wrote:
> PatlaDJ wrote:
> > Java SAX parser, please need a clue how to get the raw XML code of the
> > currently parsing event... needed for logging, debugging purposes.
>
> > Here's and example, letting me clarify exactly what i need: (see the
> > comments in source)
>
> > public void startElement(String uri, String localName, String qName,
> > Attributes attributes) throws SAXException {
> > //..Here... or maybe somewhere elsewhere I need on my disposal the raw
> > XML code of every XML tags received from the XML stream.
>
> I don't think the SAX API provides access to the raw XML.
>
> --
>
> * * * * Martin Honnen
> * * * *http://JavaScript.FAQTs.com/
Yes... now i'm pretty sure that it doesn't provide such access. Too
bad l;(
Right now i'm working towards clonning my input stream. Currently i'm
trying to clone the bufferedReader i pass as an inputsourse to the
parser ....i can't get it done
Let me explain: I read from a Socket ... the chain sequence is as
follows:
Socket -> InputStreamReader -> BufferedReader -> InputSource -> then
it goes to .parse(InputSource)....of the SAX.
What node on this chain can be cloned so I can read the data two
times.....once for the parser, once for my debugging log.
Am I on the right track, or maybe not ?