Re: [xml-dev] Do you have a Java SAX event handler that outputs the identical XML as the input?

From
Michael Kay <>
To
"Costello, Roger L." <>
Date
2014-07-15T22:50:57Z
ID
<>
Thread
Re: [xml-dev] Do you have a Java SAX event handler that outputs the identical XML as the input?
Do:

ContentHandler ch = ((SAXTransformerFactory)transformerFactory).getTransformerHandler();
ch.setResult(new StreamResult(.....))

and ch is the SAX event handler you are looking for.

Michael Kay
Saxonica

+44 (0118) 946 5893



On 15 Jul 2014, at 18:51, Costello, Roger L. <> wrote:

> Hello Folks,
> 
> I need a Java SAX event handler that outputs the same XML as the input XML.
> 
> Do you have such a Java SAX event handler that you would be willing to share?
> 
> /Roger
> 
> _______________________________________________________________________
> 
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> 
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: 
> subscribe: 
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php