axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding SerializationContextImpl.java
Date Tue, 17 Sep 2002 11:53:29 GMT
dims        2002/09/17 04:53:29

  Modified:    java/src/org/apache/axis/encoding
                        SerializationContextImpl.java
  Log:
  Missed one more location for correct serialization of comments...thanks to jon@mediasurface.com
  
  Revision  Changes    Path
  1.68      +6 -0      xml-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java
  
  Index: SerializationContextImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- SerializationContextImpl.java	16 Sep 2002 19:34:24 -0000	1.67
  +++ SerializationContextImpl.java	17 Sep 2002 11:53:29 -0000	1.68
  @@ -85,6 +85,8 @@
   import org.w3c.dom.NodeList;
   import org.w3c.dom.Text;
   import org.w3c.dom.CDATASection;
  +import org.w3c.dom.CharacterData;
  +import org.w3c.dom.Comment;
   import org.xml.sax.Attributes;
   import org.xml.sax.helpers.AttributesImpl;
   
  @@ -1097,6 +1099,10 @@
                   writeString("<![CDATA[");
                   writeString(((Text)child).getData());
                   writeString("]]>");
  +            } else if (child instanceof Comment) {
  +                writeString("<!--");
  +                writeString(((CharacterData)child).getData());
  +                writeString("-->");
               } else if (child instanceof Text) {
                   writeSafeString(((Text)child).getData());
               }
  
  
  

Mime
View raw message