Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Java SAX parser. How to get the raw XML code of the currently parsing event >Thread Next - Re: Java SAX parser. How to get the raw XML code of the currently parsing event Re: Java SAX parser. How to get the raw XML code of the currently parsing eventTo: 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 ?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
