You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by sa...@ca.ibm.com on 2001/03/15 16:49:03 UTC
Patch - fix for [Bug 966] - serialize xml with internal dtd generate not-well-formed
xml
Hi all, the fix is to implement the function "flushLine()" for
org/apache/xml/serialize/Printer as following. The patch file is attached.
diff -w -r1.3 Printer.java
316c316,325
< // NOOP
---
> // Write anything left in the buffer into the writer.
> try {
> _writer.write( _buffer, 0, _pos );
> } catch ( IOException except ) {
> // We don't throw an exception, but hold it
> // until the end of the document.
> if ( _exception == null )
> _exception = except;
> }
> _pos = 0;
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
sandygao@ca.ibm.com
(See attached file: diff.txt)
Re: Patch - fix for [Bug 966] - serialize xml with internal dtd generate
not-well-formedxml
Posted by Elena Litani <hl...@jtcsv.com>.
Applied.
Thanks again
Elena
sandygao@ca.ibm.com wrote:
>
> Hi all, the fix is to implement the function "flushLine()" for
> org/apache/xml/serialize/Printer as following. The patch file is attached.
>
> diff -w -r1.3 Printer.java
> 316c316,325
> < // NOOP
> ---
> > // Write anything left in the buffer into the writer.
> > try {
> > _writer.write( _buffer, 0, _pos );
> > } catch ( IOException except ) {
> > // We don't throw an exception, but hold it
> > // until the end of the document.
> > if ( _exception == null )
> > _exception = except;
> > }
> > _pos = 0;
>
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-416) 448-3255
> sandygao@ca.ibm.com
>
> (See attached file: diff.txt)
>
> ------------------------------------------------------------------------
> Name: diff.txt
> diff.txt Type: Plain Text (text/plain)
> Encoding: base64
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org