Hi Christopher, An XMLStreamWriter should be able to write to any java.io.OutputStream or java.io.Writer. It needs to take care of the encoding when the target is an OutputStream. This can be as simple as wrapping it in an java.io.OutputStreamWriter and as complex as having native support in the serializer for char to byte conversions (for each encoding), the latter usually being done in XML serializers for performance reasons.
Thanks. Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org "Christopher L. Ramsey" <christopherlram...@hotmail.com> wrote on 03/21/2012 12:47:31 PM: > I have some questions about the XMLStreamWriter? Would this > serialize to an FileWriter and a FileInputStream or would this be > able to filter to any stream or writer. I think it should be able to > support any of them, and maybe use a string decoder if somebody > wants a different encoding? What do you think? > > --Christopher L. Ramsey