code: public void CopyFrom(ToXMLStream xmlListener)
      {
  
          setWriter(xmlListener.m_writer);
  
  
          // m_outputStream = xmlListener.m_outputStream;
          String encoding = xmlListener.getEncoding();
          setEncoding(encoding);
  
          setOmitXMLDeclaration(xmlListener.getOmitXMLDeclaration());
  
          m_ispreserve = xmlListener.m_ispreserve;
          m_preserves = xmlListener.m_preserves;
          m_isprevtext = xmlListener.m_isprevtext;
          m_doIndent = xmlListener.m_doIndent;
          setIndentAmount(xmlListener.getIndentAmount());
          m_startNewLine = xmlListener.m_startNewLine;
          m_needToOutputDocTypeDecl = xmlListener.m_needToOutputDocTypeDecl;
          setDoctypeSystem(xmlListener.getDoctypeSystem());
          setDoctypePublic(xmlListener.getDoctypePublic());        
          setStandalone(xmlListener.getStandalone());
          setMediaType(xmlListener.getMediaType());
          m_encodingInfo = xmlListener.m_encodingInfo;
          m_spaceBeforeClose = xmlListener.m_spaceBeforeClose;
          m_cdataStartCalled = xmlListener.m_cdataStartCalled;
  
      }
docs: Copy properties from another SerializerToXML.
  
  @param xmlListener non-null reference to a SerializerToXML object.