You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/05 17:17:14 UTC

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

tng         2002/09/05 08:17:13

  Modified:    c/doc    program-dom.xml
  Log:
  [Bug 12290] example on webpage won't compile.
  
  Revision  Changes    Path
  1.22      +6 -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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- program-dom.xml	21 Aug 2002 20:58:43 -0000	1.21
  +++ program-dom.xml	5 Sep 2002 15:17:13 -0000	1.22
  @@ -269,6 +269,7 @@
       #include <xercesc/dom/DOM.hpp>
       #include <xercesc/sax/HandlerBase.hpp>
       #include <xercesc/util/XMLString.hpp>
  +    #include <xercesc/util/PlatformUtils.hpp>
   
       int main (int argc, char* args[]) {
   
  @@ -303,7 +304,7 @@
               return -1;
           }
           catch (const DOMException& toCatch) {
  -            char* message = XMLString::transcode(toCatch.getMessage());
  +            char* message = XMLString::transcode(toCatch.msg);
               cout << "Exception message is: \n"
                    << message << "\n";
               delete [] message;
  @@ -603,6 +604,7 @@
       <source>
       #include &lt;xercesc/dom/DOM.hpp>
       #include &lt;xercesc/util/XMLString.hpp>
  +    #include &lt;xercesc/util/PlatformUtils.hpp>
   
       int main (int argc, char* args[]) {
   
  @@ -651,7 +653,7 @@
               return -1;
           }
           catch (const DOMException&amp; toCatch) {
  -            char* message = XMLString::transcode(toCatch.getMessage());
  +            char* message = XMLString::transcode(toCatch.msg);
               cout &lt;&lt; "Exception message is: \n"
                    &lt;&lt; message &lt;&lt; "\n";
               delete [] message;
  @@ -1169,6 +1171,7 @@
       <source>
       #include &lt;xercesc/dom/DOM.hpp>
       #include &lt;xercesc/util/XMLString.hpp>
  +    #include &lt;xercesc/util/PlatformUtils.hpp>
   
       int serializeDOM(DOMNode* node) {
   
  @@ -1210,7 +1213,7 @@
               return -1;
           }
           catch (const DOMException&amp; toCatch) {
  -            char* message = XMLString::transcode(toCatch.getMessage());
  +            char* message = XMLString::transcode(toCatch.msg);
               cout &lt;&lt; "Exception message is: \n"
                    &lt;&lt; message &lt;&lt; "\n";
               delete [] message;
  
  
  

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