Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Java SAX parser. How to get the raw XML code of the currently parsing event

From: PatlaDJ <patladj@-----.--->
To: NULL
Date: 7/3/2008 6:56:00 AM
On 3 =DE=EB=E8, 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.
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen
> =A0 =A0 =A0 =A0http://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 ?


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent