peiyongz    2003/04/01 19:14:42

  Modified:    c/src/xercesc/dom/impl DOMWriterImpl.cpp
  Log:
  Bug#18594: DOMWriter does not recognize Document Fragment
  
  Revision  Changes    Path
  1.32      +19 -1     xml-xerces/c/src/xercesc/dom/impl/DOMWriterImpl.cpp
  
  Index: DOMWriterImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMWriterImpl.cpp,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- DOMWriterImpl.cpp 16 Mar 2003 05:42:04 -0000      1.31
  +++ DOMWriterImpl.cpp 2 Apr 2003 03:14:42 -0000       1.32
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.32  2003/04/02 03:14:42  peiyongz
  + * Bug#18594: DOMWriter does not recognize Document Fragment
  + *
    * Revision 1.31  2003/03/16 05:42:04  peiyongz
    * Bug#17983 Formatter does not escape control characters
    *
  @@ -832,6 +835,21 @@
               *fFormatter << gXMLDecl_SDDecl << st << gXMLDecl_separator;
   
               *fFormatter << gXMLDecl_endtag;
  +
  +            DOMNode *child = nodeToWrite->getFirstChild();
  +            while( child != 0)
  +            {
  +                processNode(child, level);
  +                child = child->getNextSibling();
  +            }
  +            printNewLine();
  +            break;
  +        }
  +
  +    case DOMNode::DOCUMENT_FRAGMENT_NODE:
  +        {
  +           
  +            setURCharRef();
   
               DOMNode *child = nodeToWrite->getFirstChild();
               while( child != 0)
  
  
  

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

Reply via email to