Try using the org.apache.servicemix.jbi.jaxp.SourceTransformer class.
   Source newSource = new StringSource(new
SourceTransformer().toString(oldSource));


On Mon, May 5, 2008 at 3:20 PM, Sathyashankar <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  I need to convert Streamsource to stringsource/bytessource.
>  The casting works fine at compile time, but throws a "Cannot cast" exception
>  at runtime...
>  Any suggestions???
>  Thanks in advance.
>  --
>  View this message in context: 
> http://www.nabble.com/Streamsource-to-Stringsource-tp17061479p17061479.html
>  Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to