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: "Joseph J. Kesselman" <keshlam-nospam@-------.--->
To: NULL
Date: 7/3/2008 10:35:00 AM

> 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.

I'd suggest dealing with it at the Java level. Find or write a "wrapper" 
reader implementation which saves a copy of the data passing through it 
off to a data structure or scratch file for rereading, or perhaps which 
writes the data direct to your log as it passes through. Plug that in 
somewhere between the InputStreamReader and the InputSource -- whether 
upstream, downstream, or in place of the BufferedReader depends on the 
details of how this tee adapter is written.


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