[ http://jira.codehaus.org/browse/DOXIA-28?page=comments#action_53227 ]
Juan F. Codagnone commented on DOXIA-28: ---------------------------------------- Hi, it is not _that_ importart, but it simplifies a bit the code, and it makes easier following the generated output )(or hand editing!). Also, i didn't felt right printing an xml. Now the formating of the xml is abstracted and can be controlled by XMLWriter implementations. > XmlWriterXdocSink > ----------------- > > Key: DOXIA-28 > URL: http://jira.codehaus.org/browse/DOXIA-28 > Project: doxia > Type: Improvement > Reporter: Juan F. Codagnone > Attachments: 1.diff, XmlWriterXdocSink.java, XmlWriterXdocSink.java > > > Hi, > 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, > "ISO-8859-1", null); > Juan. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira