[doxia-dev] [jira] Created: (DOXIA-28) XmlWriterXdocSink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[doxia-dev] [jira] Created: (DOXIA-28) XmlWriterXdocSink

JIRA jira@codehaus.org
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

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

Reply | Threaded
Open this post in threaded view
|

[doxia-dev] [jira] Commented: (DOXIA-28) XmlWriterXdocSink

JIRA jira@codehaus.org
    [ http://jira.codehaus.org/browse/DOXIA-28?page=comments#action_50407 ]

Juan F. Codagnone commented on DOXIA-28:
----------------------------------------

it also makes life easier to check output in unit test.

> 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
>
>
> 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