elena       2003/03/24 12:32:30

  Modified:    java/src/org/apache/xml/serialize XMLSerializer.java
  Log:
  Undeprecating setNamespace() in XMLSerializer :
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16103
  
  Revision  Changes    Path
  1.49      +6 -5      xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java
  
  Index: XMLSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- XMLSerializer.java        17 Feb 2003 18:06:28 -0000      1.48
  +++ XMLSerializer.java        24 Mar 2003 20:32:30 -0000      1.49
  @@ -227,16 +227,17 @@
       /**
        * This methods turns on namespace fixup algorithm during
        * DOM serialization.
  -     * @deprecated -- functionality could be removed
        * @see org.w3c.dom.ls.DOMWriter     
        * 
        * @param namespaces
        */
       public void setNamespaces (boolean namespaces){
           fNamespaces = namespaces;
  -        fNSBinder = new NamespaceSupport();
  -        fLocalNSBinder = new NamespaceSupport();
  -        fSymbolTable = new SymbolTable();
  +        if (fNSBinder == null) {
  +            fNSBinder = new NamespaceSupport();
  +            fLocalNSBinder = new NamespaceSupport();
  +            fSymbolTable = new SymbolTable();
  +        }
       }
   
       //-----------------------------------------//
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to