diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-07-11 12:05:15 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-07-11 12:05:15 (GMT) |
commit | 21d982e3a5551877c4fc6159ff2c3fe679844f33 (patch) | |
tree | 3508563e38269d65882ba5c3a7a1a88e52916a50 /src/xerces-test.cpp | |
parent | cf9db3db4d6a56229aa9567cd436822e03d301f5 (diff) | |
download | mxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.zip mxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.tar.gz mxe-21d982e3a5551877c4fc6159ff2c3fe679844f33.tar.bz2 |
test program for package xerces
Diffstat (limited to 'src/xerces-test.cpp')
-rw-r--r-- | src/xerces-test.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/xerces-test.cpp b/src/xerces-test.cpp new file mode 100644 index 0000000..feba8d3 --- /dev/null +++ b/src/xerces-test.cpp @@ -0,0 +1,24 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <xercesc/parsers/SAXParser.hpp> + +XERCES_CPP_NAMESPACE_USE + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + XMLPlatformUtils::Initialize(); + { + SAXParser parser; + parser.setValidationScheme(SAXParser::Val_Always); + parser.setDoNamespaces(true); + parser.setDoSchema(true); + parser.setValidationSchemaFullChecking(false); + } + XMLPlatformUtils::Terminate(); + + return 0; +} |