tng 2002/09/05 08:28:51
Modified: targets/xerces-c program-dom.html
Log:
[Bug 12290] example on webpage won't compile.
Revision Changes Path
1.4 +7 -4 xml-site/targets/xerces-c/program-dom.html
Index: program-dom.html
===================================================================
RCS file: /home/cvs/xml-site/targets/xerces-c/program-dom.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- program-dom.html 29 Aug 2002 21:27:29 -0000 1.3
+++ program-dom.html 5 Sep 2002 15:28:51 -0000 1.4
@@ -332,6 +332,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[]) {
@@ -366,7 +367,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;
@@ -819,6 +820,7 @@
<DIV align="left"><TABLE border="0" cellpadding="0" cellspacing="4"
width="464"><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0"
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD
bgcolor="#0086b2" height="1" width="462"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="462"></TD><TD bgcolor="#0086b2"
height="1" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD
bgcolor="#0086b2" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#ffffff"
width="462"><FONT size="-1"><PRE>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
+ #include <xercesc/util/PlatformUtils.hpp>
int main (int argc, char* args[]) {
@@ -867,7 +869,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;
@@ -1632,6 +1634,7 @@
<DIV align="left"><TABLE border="0" cellpadding="0" cellspacing="4"
width="464"><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0"
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD
bgcolor="#0086b2" height="1" width="462"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="462"></TD><TD bgcolor="#0086b2"
height="1" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD
bgcolor="#0086b2" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#ffffff"
width="462"><FONT size="-1"><PRE>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/util/XMLString.hpp>
+ #include <xercesc/util/PlatformUtils.hpp>
int serializeDOM(DOMNode* node) {
@@ -1673,7 +1676,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;
@@ -1952,4 +1955,4 @@
</TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0"
cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1"
src="images/dot.gif" width="1"></TD></TR><TR><TD align="center"><FONT
color="#0086b2" size="-1"><I>
Copyright © 2001 The Apache Software Foundation.
All Rights Reserved.
- </I></FONT></TD></TR></TABLE></BODY></HTML>
\ No newline at end of file
+ </I></FONT></TD></TR></TABLE></BODY></HTML>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]