You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2002/07/15 17:43:28 UTC

cvs commit: xml-xerces/c/doc program-dom.xml

peiyongz    2002/07/15 08:43:28

  Modified:    c/doc    program-dom.xml
  Log:
  change on DOMWriter sample
  
  Revision  Changes    Path
  1.17      +3 -3      xml-xerces/c/doc/program-dom.xml
  
  Index: program-dom.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/doc/program-dom.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- program-dom.xml	15 Jul 2002 14:06:58 -0000	1.16
  +++ program-dom.xml	15 Jul 2002 15:43:28 -0000	1.17
  @@ -1107,17 +1107,17 @@
   
           // optionally you can implement your DOMWriterFilter (e.g. MyDOMWriterFilter)
           // and set it to the serializer
  -        MyDOMWriterFilter* myFilter = new myDOMWriterFilter();
  +        DOMWriterFilter* myFilter = new myDOMWriterFilter();
           theSerializer->setFilter(myFilter);
   
           // optionally you can implement your DOMErrorHandler (e.g. MyDOMErrorHandler)
           // and set it to the serializer
  -        MyDOMErrorHandler* errHandler = new myDOMErrorHandler();
  +        DOMErrorHandler* errHandler = new myDOMErrorHandler();
           theSerializer->setErrorHandler(myErrorHandler);
   
           // StdOutFormatTarget prints the resultant XML stream
           // to stdout once it receives any thing from the serializer.
  -        StdOutFormatTarget *myFormTarget = new StdOutFormatTarget();
  +        XMLFormatTarget *myFormTarget = new StdOutFormatTarget();
   
           try {
               // do the serialization through DOMWriter::writeNode();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org