Author: amassari
Date: Tue Apr 24 11:10:15 2012
New Revision: 1329637
URL: http://svn.apache.org/viewvc?rev=1329637&view=rev
Log:
Catch DOMLSexceptions; use default settings for language extensions
Modified:
xerces/c/trunk/projects/Win32/VC9/xerces-all/DOMPrint/DOMPrint.vcproj
xerces/c/trunk/samples/src/DOMPrint/DOMPrint.cpp
Modified: xerces/c/trunk/projects/Win32/VC9/xerces-all/DOMPrint/DOMPrint.vcproj
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/projects/Win32/VC9/xerces-all/DOMPrint/DOMPrint.vcproj?rev=1329637&r1=1329636&r2=1329637&view=diff
==============================================================================
--- xerces/c/trunk/projects/Win32/VC9/xerces-all/DOMPrint/DOMPrint.vcproj
(original)
+++ xerces/c/trunk/projects/Win32/VC9/xerces-all/DOMPrint/DOMPrint.vcproj Tue
Apr 24 11:10:15 2012
@@ -50,6 +50,7 @@
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
+ DisableLanguageExtensions="false"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
@@ -221,7 +222,6 @@
AdditionalIncludeDirectories="..\..\..\..\..\src"
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;_WINDOWS"
RuntimeLibrary="3"
- DisableLanguageExtensions="true"
TreatWChar_tAsBuiltInType="true"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
@@ -399,6 +399,7 @@
StringPooling="true"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
+ DisableLanguageExtensions="false"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
@@ -571,7 +572,7 @@
AdditionalIncludeDirectories="..\..\..\..\..\src"
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;_WINDOWS;XERCES_STATIC_LIBRARY"
RuntimeLibrary="1"
- DisableLanguageExtensions="true"
+ DisableLanguageExtensions="false"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
@@ -745,7 +746,7 @@
AdditionalIncludeDirectories="..\..\..\..\..\src"
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;_WINDOWS"
RuntimeLibrary="3"
- DisableLanguageExtensions="true"
+ DisableLanguageExtensions="false"
TreatWChar_tAsBuiltInType="true"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
@@ -923,6 +924,7 @@
StringPooling="true"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
+ DisableLanguageExtensions="false"
PrecompiledHeaderFile="$(IntDir)\DOMPrint.pch"
AssemblerListingLocation="$(IntDir)\"
ObjectFile="$(IntDir)\"
Modified: xerces/c/trunk/samples/src/DOMPrint/DOMPrint.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/samples/src/DOMPrint/DOMPrint.cpp?rev=1329637&r1=1329636&r2=1329637&view=diff
==============================================================================
--- xerces/c/trunk/samples/src/DOMPrint/DOMPrint.cpp (original)
+++ xerces/c/trunk/samples/src/DOMPrint/DOMPrint.cpp Tue Apr 24 11:10:15 2012
@@ -562,7 +562,14 @@ int main(int argC, char* argV[])
XERCES_STD_QUALIFIER cerr << "OutOfMemoryException" <<
XERCES_STD_QUALIFIER endl;
retval = 5;
}
- catch (XMLException& e)
+ catch (const DOMLSException& e)
+ {
+ XERCES_STD_QUALIFIER cerr << "An error occurred during
serialization of the DOM tree. Msg is:"
+ << XERCES_STD_QUALIFIER endl
+ << StrX(e.getMessage()) << XERCES_STD_QUALIFIER endl;
+ retval = 4;
+ }
+ catch (const XMLException& e)
{
XERCES_STD_QUALIFIER cerr << "An error occurred during creation of
output transcoder. Msg is:"
<< XERCES_STD_QUALIFIER endl
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]