axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/encoding SerializationContextImpl.java
Date Tue, 18 May 2004 08:08:55 GMT
ias         2004/05/18 01:08:55

  Modified:    java/src/org/apache/axis/encoding
                        SerializationContextImpl.java
  Log:
  Move writing XML declaration to SAXOutputter#startDocument for more proper output, for instance,
in case that comments are in front of the first element.
  
  Revision  Changes    Path
  1.109     +0 -11     ws-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java
  
  Index: SerializationContextImpl.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java,v
  retrieving revision 1.108
  retrieving revision 1.109
  diff -u -r1.108 -r1.109
  --- SerializationContextImpl.java	11 May 2004 01:25:13 -0000	1.108
  +++ SerializationContextImpl.java	18 May 2004 08:08:55 -0000	1.109
  @@ -853,17 +853,6 @@
                       "[" + qName.getNamespaceURI() + "]:" + qName.getLocalPart()));
           }
   
  -        if (startOfDocument && sendXMLDecl) {
  -            writer.write("<?xml version=\"1.0\" encoding=\"");
  -            // The origional logic is very simple
  -            // writer.write(XMLUtils.getEncoding());
  -            // The following logic is devised to utilize CHARACTER_SET_ENCODING property
from SAAJ 1.2.
  -            String encoding = XMLUtils.getEncoding(msgContext);
  -            writer.write(encoding);
  -            writer.write("\"?>\n");
  -            startOfDocument = false;
  -        }
  -
           if (writingStartTag) {
               writer.write('>');
               if (pretty) writer.write('\n');
  
  
  

Mime
View raw message