Hi Keith,
Wire, Keith C wrote:
> Hi Jorg,
>
> Sorry about the XStream typo, my email likes to autocorrect.
>
> I ran the test using each of the StaxDriver Impls you suggested and here
> are the results:
> StaxDriver = Fail
> BEAStaxDriver = Success
> WstxDriver = Fail
> SjsxpDriver = Success
>
> To add to my confusion I checked out the xstream source and ran the unit
> tests for the StaxReaderTest and it passed.
Interesting. Can you tell me, which Version of Woodstox is in charge (IIRC
CXF uses it)?
> I am using xstream 1.4.3.
>
> Also to confirm Xstream does not support writing CDATA? So I will have to
> extend say the StaxWriter to do so since the XMLStreamWriter supports it.
Well, XStream has no need to write any CDATA, it uses an own (simplified)
writer model which utilizes an XMLStreamWriter in case of the
StaxDriver/StaxWriter. The value of XML elements is written in the
StaxWriter.setValue method. You may overload it to call writeCDATA instead
of writeCharacters. For the StaxDriver simply overload the createWriter
method to create your own derived StaxWriter.
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email