public class XMLBeanStreamSerializer
Serializes an XMLBean data object to an XML stream Note: uses an intermediate file created by
File.createTempFile(String, String) as I couldn't work out how to fit a normal stream into an event driven
Serialize the given XML data object. Writes the data object to a temporary file then reads it back in
with an XMLStreamReader.
This allows the events from the reader to drive the output to the XMLStreamWriter.
Probably not the best way to do this.