venu 2003/11/18 06:59:33 Modified: java/src/org/apache/xml/serialize DOMSerializerImpl.java Log: Fix for bug 24778. Patch submitted by ramesh mandava. Revision Changes Path 1.7 +4 -3 xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java Index: DOMSerializerImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- DOMSerializerImpl.java 17 Nov 2003 13:47:36 -0000 1.6 +++ DOMSerializerImpl.java 18 Nov 2003 14:59:33 -0000 1.7 @@ -459,7 +459,7 @@ * the node from the stream or to terminate the serialization early. */ public LSSerializerFilter getFilter(){ - return null; + return serializer.fDOMFilter; } /** * When the application provides a filter, the serializer will call out @@ -626,12 +626,13 @@ serializer._format.setEncoding(encoding); OutputStream outputStream = destination.getByteStream(); Writer writer = destination.getCharacterStream(); - String uri = uri = destination.getSystemId(); + String uri = destination.getSystemId(); if (writer == null) { if (outputStream == null) { if (uri == null) { if (ser.fDOMErrorHandler != null) { DOMErrorImpl error = new DOMErrorImpl(); + error.fType = "no-output-specified"; error.fMessage = "no-output-specified"; error.fSeverity = DOMError.SEVERITY_FATAL_ERROR; ser.fDOMErrorHandler.handleError(error);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]