Hello,
To parse several XML documents I´m using libxml++. I do programming for linux angstrom-armv5te. Because compiling libxml++ for this distribution and platform was impossible, I simply included the library to my project, which workes fine.
Unfortunately I´m not able not use the exception handing which effects that a simple error inside a documents makes my whole program crash. This should not happen.
Is there a way to check the documents validity before parsing or better active the exception handling for doing this:
Code:
try{
xmlpp::DomParser Parser;
Parser.parse_file( XMLFilePath);
}
catch (...){
printf("error");
}
LIBXMLCPP_EXCEPTIONS_ENABLED is not defined. Inside the 'libxml++config.h' there is following code:
Code:
#ifdef GLIBMM_CONFIGURE
/* compiler feature tests that are used during compile time and run-time
by libxml++ only. */
#undef LIBXMLCPP_EXCEPTIONS_ENABLED
#endif /* GLIBMM_CONFIGURE */
Any chances to solve my problem?
Thanks in advance, Michael