Write the XML to a stream, without using standard APIs. This appears to be about ten times as fast (for our
simple purposes) as using a Transformer (
XmlModelWriter.write ), and it avoids JDK and environment issues with obtaining
a TransformerFactory.