i implemented an XmlWriterXdocSink (an xdoc sink implementation that use
org.codehaus.plexus.util.xml.XMLWriter to output things). The cool thing
about using a XMLWriter is that you can use a PrettyPrintXMLWriter and make
the output easily readable. The implementation is based on XdocSink.java. I
attach the source file and the differences.
You can use it as: new XmlWriterXdocSink(new PrettyPrintXMLWriter(writer,
Buenos Aires, Argentina 15°C with winds at 20 km/h E