Added: xerces/c/trunk/cmake/XercesWChar.cmake
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/cmake/XercesWChar.cmake?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/cmake/XercesWChar.cmake (added)
+++ xerces/c/trunk/cmake/XercesWChar.cmake Sat Jun  3 21:43:04 2017
@@ -0,0 +1,53 @@
+# CMake build for xerces-c
+#
+# Written by Roger Leigh <[email protected]>
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Wide character functions
+
+include(CheckCXXSourceCompiles)
+
+check_cxx_source_compiles("
+#include <wchar.h>
+int main(void) {
+  mbstate_t st;
+  mbrlen( \"t\", 5, &st );
+  return 0;
+}"
+  HAVE_MBRLEN)
+
+check_cxx_source_compiles("
+#include <wchar.h>
+int main(void) {
+  mbstate_t st;
+  char buffer[2];
+  const wchar_t* src=0;
+  wcsrtombs(buffer, &src, 2, &st);
+  return 0;
+}"
+  HAVE_WCSRTOMBS)
+
+check_cxx_source_compiles("
+#include <wchar.h>
+int main(void) {
+  mbstate_t st;
+  wchar_t buffer[2];
+  const char* src=0;
+  mbsrtowcs(buffer, &src, 2, &st);
+  return 0;
+}"
+  HAVE_MBSRTOWCS)

Added: xerces/c/trunk/cmake/XercesWarnings.cmake
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/cmake/XercesWarnings.cmake?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/cmake/XercesWarnings.cmake (added)
+++ xerces/c/trunk/cmake/XercesWarnings.cmake Sat Jun  3 21:43:04 2017
@@ -0,0 +1,79 @@
+# CMake build for xerces-c
+#
+# Written by Roger Leigh <[email protected]>
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# compiler warnings
+
+# These are annoyingly verbose, produce false positives or don't work
+# nicely with all supported compiler versions, so are disabled unless
+# explicitly enabled.
+option(extra-warnings "Enable extra compiler warnings" OFF)
+
+# This will cause the compiler to fail when an error occurs.
+option(fatal-warnings "Compiler warnings are errors" OFF)
+
+# Check if the compiler supports each of the following additional
+# flags, and enable them if supported.  This greatly improves the
+# quality of the build by checking for a number of common problems,
+# some of which are quite serious.
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
+   CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+  set(test_flags
+      -Wall
+      -Winline
+      -W
+      -Wformat-security
+      -Wpointer-arith
+      -Wdisabled-optimization
+      -Wno-unknown-pragmas
+      -fstrict-aliasing)
+  if(extra-warnings)
+    list(APPEND test_flags
+        -Wfloat-equal
+        -Wmissing-prototypes
+        -Wunreachable-code)
+  endif()
+  if(fatal-warnings)
+    list(APPEND test_flags
+         -Werror)
+  endif()
+elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+  set(test_flags)
+  if(extra-warnings)
+    list(APPEND test_flags
+         /W4)
+  else()
+    list(APPEND test_flags
+         /W3)
+  endif()
+  if (fatal-warnings)
+    list(APPEND test_flags
+         /WX)
+  endif()
+endif()
+
+include(CheckCXXCompilerFlag)
+
+foreach(flag ${test_flags})
+  string(REGEX REPLACE "[^A-Za-z0-9]" "_" flag_var "${flag}")
+  set(test_c_flag "CXX_FLAG${flag_var}")
+  CHECK_CXX_COMPILER_FLAG(${flag} "${test_c_flag}")
+  if (${test_c_flag})
+     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
+  endif (${test_c_flag})
+endforeach(flag ${test_flags})

Added: xerces/c/trunk/cmake/XercesXMLCh.cmake
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/cmake/XercesXMLCh.cmake?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/cmake/XercesXMLCh.cmake (added)
+++ xerces/c/trunk/cmake/XercesXMLCh.cmake Sat Jun  3 21:43:04 2017
@@ -0,0 +1,46 @@
+# CMake build for xerces-c
+#
+# Written by Roger Leigh <[email protected]>
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# check if the Windows API is defined as using wchar_t or unsigned
+# short; if it's wchar_t, we need to map XMLCh to be wchar_t (this is
+# safe because on Windows wchar_t is used to store UTF-16 codepoints,
+# while it is not true on Unix)
+
+include(CheckCXXSourceCompiles)
+include(XercesIntTypes)
+
+set(XERCES_XMLCH_T ${XERCES_U16BIT_INT})
+set(XERCES_INCLUDE_WCHAR_H 0)
+if(WIN32)
+  check_cxx_source_compiles("
+#include <windows.h>
+
+wchar_t file[] = L\"dummy.file\";
+
+int main() {
+  DeleteFileW(file);
+  return 0;
+}"
+    WINDOWS_wchar)
+
+  if(WINDOWS_wchar)
+    set(XERCES_XMLCH_T wchar_t)
+    set(XERCES_INCLUDE_WCHAR_H 1)
+  endif()
+endif()

Added: xerces/c/trunk/config.h.cmake.in
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/config.h.cmake.in?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/config.h.cmake.in (added)
+++ xerces/c/trunk/config.h.cmake.in Sat Jun  3 21:43:04 2017
@@ -0,0 +1,493 @@
+/* config.h.cmake.in.  Not generated, but originated from autoheader.  */
+/* This file must be kept up-to-date with needed substitutions from 
config.h.in. */
+
+/* Define to 1 if you have the <cstdint> header file. */
+#cmakedefine HAVE_CSTDINT 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#cmakedefine HAVE_STDINT_H 1
+
+#if defined(__cplusplus) && defined(HAVE_CSTDINT)
+#include <cstdint>
+#elif HAVE_STDINT_H
+#include <stdint.h>
+#elif HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+/* Define to specify no threading is used */
+#cmakedefine APP_NO_THREADS 1
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#cmakedefine HAVE_ARPA_INET_H 1
+
+/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
+#cmakedefine HAVE_ARPA_NAMESER_COMPAT_H 1
+
+/* define if bool is a built-in type */
+#cmakedefine HAVE_BOOL 1
+
+/* Define to 1 if you have the `catclose' function. */
+#cmakedefine HAVE_CATCLOSE 1
+
+/* Define to 1 if you have the `catgets' function. */
+#cmakedefine HAVE_CATGETS 1
+
+/* Define to 1 if you have the `catopen' function. */
+#cmakedefine HAVE_CATOPEN 1
+
+/* Define to 1 if you have the `clock_gettime' function. */
+#cmakedefine HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the <CoreServices/CoreServices.h> header file. */
+#cmakedefine HAVE_CORESERVICES_CORESERVICES_H 1
+
+/* Define to 1 if you have cpuid.h */
+#cmakedefine HAVE_CPUID_H 1
+
+/* Define to 1 if you have the <ctype.h> header file. */
+#cmakedefine HAVE_CTYPE_H 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#cmakedefine HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <endian.h> header file. */
+#cmakedefine HAVE_ENDIAN_H 1
+
+/* Define to 1 if you have the <errno.h> header file. */
+#cmakedefine HAVE_ERRNO_H 1
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#cmakedefine HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the <float.h> header file. */
+#cmakedefine HAVE_FLOAT_H 1
+
+/* Define to 1 if you have the `ftime' function. */
+#cmakedefine HAVE_FTIME 1
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#cmakedefine HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getcwd' function. */
+#cmakedefine HAVE_GETCWD 1
+
+/* Define to 1 if you have the `gethostbyaddr' function. */
+#cmakedefine HAVE_GETHOSTBYADDR 1
+
+/* Define to 1 if you have the `gethostbyname' function. */
+#cmakedefine HAVE_GETHOSTBYNAME 1
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#cmakedefine HAVE_GETTIMEOFDAY 1
+
+/* Define to 1 if you have the `iconv' function. */
+#cmakedefine HAVE_ICONV 1
+
+/* Define to 1 if you have the `iconv_close' function. */
+#cmakedefine HAVE_ICONV_CLOSE 1
+
+/* Define to 1 if you have the <iconv.h> header file. */
+#cmakedefine HAVE_ICONV_H 1
+
+/* Define to 1 if you have the `iconv_open' function. */
+#cmakedefine HAVE_ICONV_OPEN 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#cmakedefine HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <langinfo.h> header file. */
+#cmakedefine HAVE_LANGINFO_H 1
+
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+#cmakedefine HAVE_LIBNSL 1
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+#cmakedefine HAVE_LIBSOCKET 1
+
+/* Define to 1 if you have the <limits.h> header file. */
+#cmakedefine HAVE_LIMITS_H 1
+
+/* Define to 1 if you have the `localeconv' function. */
+#cmakedefine HAVE_LOCALECONV 1
+
+/* Define to 1 if you have the <locale.h> header file. */
+#cmakedefine HAVE_LOCALE_H 1
+
+/* define if the compiler implements L"widestring" */
+#cmakedefine HAVE_LSTRING 1
+
+/* Define to 1 if you have the <machine/endian.h> header file. */
+#cmakedefine HAVE_MACHINE_ENDIAN_H 1
+
+/* Define to 1 if you have the `mblen' function. */
+#cmakedefine HAVE_MBLEN 1
+
+/* Define to 1 if you have the `mbrlen' function. */
+#cmakedefine HAVE_MBRLEN 1
+
+/* Define to 1 if you have the `mbsrtowcs' function. */
+#cmakedefine HAVE_MBSRTOWCS 1
+
+/* Define to 1 if you have the `mbstowcs' function. */
+#cmakedefine HAVE_MBSTOWCS 1
+
+/* Define to 1 if you have the `memmove' function. */
+#cmakedefine HAVE_MEMMOVE 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#cmakedefine HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `memset' function. */
+#cmakedefine HAVE_MEMSET 1
+
+/* define if the compiler implements namespaces */
+#cmakedefine HAVE_NAMESPACES 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#cmakedefine HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#cmakedefine HAVE_NETINET_IN_H 1
+
+/* Define to 1 if you have the `nl_langinfo' function. */
+#cmakedefine HAVE_NL_LANGINFO 1
+
+/* Define to 1 if you have the <nl_types.h> header file. */
+#cmakedefine HAVE_NL_TYPES_H 1
+
+/* Define to 1 if you have the `pathconf' function. */
+#cmakedefine HAVE_PATHCONF 1
+
+/* Define to 1 if you have the PATH_MAX macro. */
+#cmakedefine HAVE_PATH_MAX 1
+
+/* Define if you have POSIX threads libraries and header files. */
+#cmakedefine HAVE_PTHREAD 1
+
+/* Define to 1 if you have the `realpath' function. */
+#cmakedefine HAVE_REALPATH 1
+
+/* Define to 1 if you have the `setlocale' function. */
+#cmakedefine HAVE_SETLOCALE 1
+
+/* Define to 1 if you have the `socket' function. */
+#cmakedefine HAVE_SOCKET 1
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#cmakedefine HAVE_STDBOOL_H 1
+
+/* Define to 1 if you have the <stddef.h> header file. */
+#cmakedefine HAVE_STDDEF_H 1
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#cmakedefine HAVE_STDIO_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#cmakedefine HAVE_STDLIB_H 1
+
+/* define if the compiler supports ISO C++ standard library */
+#cmakedefine HAVE_STD_LIBS 1
+
+/* define if the compiler supports the std namespace */
+#cmakedefine HAVE_STD_NAMESPACE 1
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#cmakedefine HAVE_STRCASECMP 1
+
+/* Define to 1 if you have the `strchr' function. */
+#cmakedefine HAVE_STRCHR 1
+
+/* Define to 1 if you have the `strdup' function. */
+#cmakedefine HAVE_STRDUP 1
+
+/* Define to 1 if you have the `stricmp' function. */
+#cmakedefine HAVE_STRICMP 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#cmakedefine HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#cmakedefine HAVE_STRING_H 1
+
+/* Define to 1 if you have the `strncasecmp' function. */
+#cmakedefine HAVE_STRNCASECMP 1
+
+/* Define to 1 if you have the `strnicmp' function. */
+#cmakedefine HAVE_STRNICMP 1
+
+/* Define to 1 if you have the `strrchr' function. */
+#cmakedefine HAVE_STRRCHR 1
+
+/* Define to 1 if you have the `strstr' function. */
+#cmakedefine HAVE_STRSTR 1
+
+/* Define to 1 if you have the `strtol' function. */
+#cmakedefine HAVE_STRTOL 1
+
+/* Define to 1 if you have the `strtoul' function. */
+#cmakedefine HAVE_STRTOUL 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#cmakedefine HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#cmakedefine HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#cmakedefine HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/timeb.h> header file. */
+#cmakedefine HAVE_SYS_TIMEB_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#cmakedefine HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#cmakedefine HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the `towlower' function. */
+#cmakedefine HAVE_TOWLOWER 1
+
+/* Define to 1 if you have the `towupper' function. */
+#cmakedefine HAVE_TOWUPPER 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#cmakedefine HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the <wchar.h> header file. */
+#cmakedefine HAVE_WCHAR_H 1
+
+/* Define to 1 if you have the `wcsicmp' function. */
+#cmakedefine HAVE_WCSICMP 1
+
+/* Define to 1 if you have the `wcslwr' function. */
+#cmakedefine HAVE_WCSLWR 1
+
+/* Define to 1 if you have the `wcsnicmp' function. */
+#cmakedefine HAVE_WCSNICMP 1
+
+/* Define to 1 if you have the `wcsrtombs' function. */
+#cmakedefine HAVE_WCSRTOMBS 1
+
+/* Define to 1 if you have the `wcstombs' function. */
+#cmakedefine HAVE_WCSTOMBS 1
+
+/* Define to 1 if you have the `wcsupr' function. */
+#cmakedefine HAVE_WCSUPR 1
+
+/* Define to 1 if you have the <wctype.h> header file. */
+#cmakedefine HAVE_WCTYPE_H 1
+
+/* Define to 1 if you have the <winsock2.h> header file. */
+#cmakedefine HAVE_WINSOCK2_H 1
+
+/* Define to 1 if you have to use const char* with iconv, to 0 if you must use
+   char*. */
+#define ICONV_USES_CONST_POINTER @ICONV_USES_CONST_POINTER@
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#cmakedefine NO_MINUS_C_MINUS_O 1
+
+/* Name of package */
+#define PACKAGE "@PACKAGE@"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "@PACKAGE_NAME@"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "@PACKAGE_STRING@"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL "@PACKAGE_URL@"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "@PACKAGE_VERSION@"
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT @SIZEOF_INT@
+
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG @SIZEOF_LONG@
+
+/* The size of `long long', as computed by sizeof. */
+#define SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT @SIZEOF_SHORT@
+
+/* The size of `wchar_t', as computed by sizeof. */
+#define SIZEOF_WCHAR_T @SIZEOF_WCHAR_T@
+
+/* The size of `__int64', as computed by sizeof. */
+#define SIZEOF___INT64 @SIZEOF___INT64@
+
+/* Version number of package */
+#define VERSION "@PACKAGE_VERSION@"
+
+/* Define if DLL symbols should be exported */
+#cmakedefine XERCES_DLL_EXPORT 1
+
+/* Define if namespaces is supported by the compiler */
+#cmakedefine XERCES_HAS_CPP_NAMESPACE 1
+
+/* Define to have SSE2 instruction support detected at runtime using __cpuid
+   */
+#cmakedefine XERCES_HAVE_CPUID_INTRINSIC 1
+
+/* Define to 1 if you have emmintrin.h */
+#cmakedefine XERCES_HAVE_EMMINTRIN_H 1
+
+/* Define to have SSE2 instruction support detected at runtime using
+   __get_cpuid */
+#cmakedefine XERCES_HAVE_GETCPUID 1
+
+/* Define to 1 if you have intrin.h */
+#cmakedefine XERCES_HAVE_INTRIN_H 1
+
+/* Define to 1 if we have inttypes.h */
+#cmakedefine XERCES_HAVE_INTTYPES_H 1
+
+/* Define to have SSE2 instruction used at runtime */
+#cmakedefine XERCES_HAVE_SSE2_INTRINSIC 1
+
+/* Define to 1 if we have sys/types.h */
+#cmakedefine XERCES_HAVE_SYS_TYPES_H 1
+
+/* Define to have Xerces_autoconf_config.hpp include wchar.h */
+#cmakedefine XERCES_INCLUDE_WCHAR_H 1
+
+/* Define if there is support for L"widestring" */
+#cmakedefine XERCES_LSTRSUPPORT 1
+
+/* Define if the isstream library can be included as <iostream> */
+#cmakedefine XERCES_NEW_IOSTREAMS 1
+
+/* Define to have XMemory.hpp avoid declaring a matching operator delete for
+   the placement operator new */
+#cmakedefine XERCES_NO_MATCHING_DELETE_OPERATOR 1
+
+/* Define if there is no native bool support in this environment */
+#cmakedefine XERCES_NO_NATIVE_BOOL 1
+
+/* Define to use backslash as an extra path delimiter character */
+#cmakedefine XERCES_PATH_DELIMITER_BACKSLASH 1
+
+/* Define as the platform's export attribute */
+#define XERCES_PLATFORM_EXPORT @XERCES_PLATFORM_EXPORT@
+
+/* Define as the platform's import attribute */
+#define XERCES_PLATFORM_IMPORT @XERCES_PLATFORM_IMPORT@
+
+/* An appropriate signed 16 bit integer type */
+#define XERCES_S16BIT_INT @XERCES_S16BIT_INT@
+
+/* An appropriate signed 32 bit integer type */
+#define XERCES_S32BIT_INT @XERCES_S32BIT_INT@
+
+/* An appropriate signed 64 bit integer type */
+#define XERCES_S64BIT_INT @XERCES_S64BIT_INT@
+
+/* Define as the appropriate size_t type */
+#define XERCES_SIZE_T @XERCES_SIZE_T@
+
+/* Define as the appropriate ssize_t type */
+#define XERCES_SSIZE_T @XERCES_SSIZE_T@
+
+/* Define if building a static library */
+#cmakedefine XERCES_STATIC_LIBRARY 1
+
+/* Define if the std namespace is supported */
+#cmakedefine XERCES_STD_NAMESPACE 1
+
+/* An appropriate unsigned 16 bit integer type */
+#define XERCES_U16BIT_INT @XERCES_U16BIT_INT@
+
+/* An appropriate unsigned 32 bit integer type */
+#define XERCES_U32BIT_INT @XERCES_U32BIT_INT@
+
+/* An appropriate unsigned 64 bit integer type */
+#define XERCES_U64BIT_INT @XERCES_U64BIT_INT@
+
+/* Define to use the POSIX file mgr */
+#cmakedefine XERCES_USE_FILEMGR_POSIX 1
+
+/* Define to use the Windows file mgr */
+#cmakedefine XERCES_USE_FILEMGR_WINDOWS 1
+
+/* Define to use the iconv-based MsgLoader */
+#cmakedefine XERCES_USE_MSGLOADER_ICONV 1
+
+/* Define to use the ICU-based MsgLoader */
+#cmakedefine XERCES_USE_MSGLOADER_ICU 1
+
+/* Define to use the InMemory MsgLoader */
+#cmakedefine XERCES_USE_MSGLOADER_INMEMORY 1
+
+/* Define to use the NoThread mutex mgr */
+#cmakedefine XERCES_USE_MUTEXMGR_NOTHREAD 1
+
+/* Define to use the POSIX mutex mgr */
+#cmakedefine XERCES_USE_MUTEXMGR_POSIX 1
+
+/* Define to use the Windows mutex mgr */
+#cmakedefine XERCES_USE_MUTEXMGR_WINDOWS 1
+
+/* Define to use the Mac OS X CFURL NetAccessor */
+#cmakedefine XERCES_USE_NETACCESSOR_CFURL 1
+
+/* Define to use the CURL NetAccessor */
+#cmakedefine XERCES_USE_NETACCESSOR_CURL 1
+
+/* Define to use the Sockets-based NetAccessor */
+#cmakedefine XERCES_USE_NETACCESSOR_SOCKET 1
+
+/* Define to use the WinSock NetAccessor */
+#cmakedefine XERCES_USE_NETACCESSOR_WINSOCK 1
+
+/* Define to use the GNU iconv transcoder */
+#cmakedefine XERCES_USE_TRANSCODER_GNUICONV 1
+
+/* Define to use the iconv transcoder */
+#cmakedefine XERCES_USE_TRANSCODER_ICONV 1
+
+/* Define to use the ICU-based transcoder */
+#cmakedefine XERCES_USE_TRANSCODER_ICU 1
+
+/* Define to use the Mac OS UnicodeConverter-based transcoder */
+#cmakedefine XERCES_USE_TRANSCODER_MACOSUNICODECONVERTER 1
+
+/* Define to use the Windows transcoder */
+#cmakedefine XERCES_USE_TRANSCODER_WINDOWS 1
+
+/* Define to the 16 bit type used to represent Xerces UTF-16 characters */
+#define XERCES_XMLCH_T @XERCES_XMLCH_T@
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#if !@HAVE_CONST@
+#define const
+#endif
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+#if !@HAVE_INLINE@
+#if @NEED_INLINE@
+#define inline @inline_keyword@
+#else
+#define inline
+#endif
+#endif
+#endif
+
+/* Define to empty if the keyword `volatile' does not work. Warning: valid
+code using `volatile' can become incorrect without. Disable with care. */
+#if !@HAVE_VOLATILE@
+#define volatile
+#endif

Added: xerces/c/trunk/doc/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/doc/CMakeLists.txt?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/doc/CMakeLists.txt (added)
+++ xerces/c/trunk/doc/CMakeLists.txt Sat Jun  3 21:43:04 2017
@@ -0,0 +1,95 @@
+# CMake build for xerces-c
+#
+# Written by Roger Leigh <[email protected]>
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Install docs
+install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/html"
+  DESTINATION "${CMAKE_INSTALL_DOCDIR}"
+  COMPONENT "development")
+
+# Add createdocs target (if Java is available, plus the needed jars)
+find_package(Java COMPONENTS Runtime)
+if(Java_FOUND
+    AND EXISTS "${PROJECT_SOURCE_DIR}/tools/jars/stylebook-1.0-b2.jar"
+    AND EXISTS "${PROJECT_SOURCE_DIR}/tools/jars/xalan.jar"
+    AND EXISTS "${PROJECT_SOURCE_DIR}/tools/jars/xerces.jar")
+  if(UNIX)
+    set(cpsep ":")
+  else()
+    set(cpsep ";")
+  endif()
+  set(classpath 
"${PROJECT_SOURCE_DIR}/tools/jars/stylebook-1.0-b2.jar${cpsep}${PROJECT_SOURCE_DIR}/tools/jars/xalan.jar${cpsep}${PROJECT_SOURCE_DIR}/tools/jars/xerces.jar")
+  add_custom_target(createdocs
+    COMMAND "${Java_JAVA_EXECUTABLE}" -Djava.awt.headless=true
+    -classpath "${classpath}"
+    org.apache.stylebook.StyleBook
+    "targetDirectory=${CMAKE_CURRENT_SOURCE_DIR}/html"
+    ${CMAKE_CURRENT_SOURCE_DIR}/xerces-c_book.xml
+    ${CMAKE_CURRENT_SOURCE_DIR}/style
+    WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+    )
+  set_target_properties(createdocs PROPERTIES FOLDER "Documentation")
+endif()
+
+# Add createapidocs target (if doxygen is available)
+find_program(DOXYGEN_EXECUTABLE doxygen)
+if(DOXYGEN_EXECUTABLE)
+  add_custom_target(createapidocs
+    COMMAND "${DOXYGEN_EXECUTABLE}" Doxyfile
+    WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+    )
+  set_target_properties(createapidocs PROPERTIES FOLDER "Documentation")
+endif()
+
+# Add docs to IDE
+file(GLOB doc_xml
+  "${CMAKE_CURRENT_SOURCE_DIR}/*.xml")
+file(GLOB doc_style
+  "${CMAKE_CURRENT_SOURCE_DIR}/style/dtd/*.ent"
+  "${CMAKE_CURRENT_SOURCE_DIR}/style/graphics/*.gif"
+  "${CMAKE_CURRENT_SOURCE_DIR}/style/*.xml"
+  "${CMAKE_CURRENT_SOURCE_DIR}/style/resources/*.gif"
+  "${CMAKE_CURRENT_SOURCE_DIR}/style/stylesheets/*.xsl")
+
+add_custom_target(doc-xml SOURCES ${doc_xml})
+set_target_properties(doc-xml PROPERTIES FOLDER "Documentation")
+add_custom_target(doc-style SOURCES ${doc_style})
+set_target_properties(doc-style PROPERTIES FOLDER "Documentation")
+
+# Source file grouping (for IDE project layout)
+set(source_files ${doc_style})
+list(SORT source_files)
+unset(group_dir)
+unset(group_files)
+foreach(file IN LISTS source_files)
+  get_filename_component(dir "${file}" PATH)
+  file(RELATIVE_PATH dir "${CMAKE_CURRENT_SOURCE_DIR}" "${dir}")
+  if(group_dir AND NOT dir STREQUAL group_dir)
+    if(group_files)
+      source_group("${group_dir}" FILES ${group_files})
+    endif()
+    unset(group_files)
+  endif()
+  list(APPEND group_files "${file}")
+  set(group_dir "${dir}")
+endforeach()
+if(group_files)
+  source_group("${group_dir}" FILES ${group_files})
+endif()
+unset(group_dir)
+unset(group_files)

Modified: xerces/c/trunk/doc/build.xml
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/doc/build.xml?rev=1797546&r1=1797545&r2=1797546&view=diff
==============================================================================
--- xerces/c/trunk/doc/build.xml (original)
+++ xerces/c/trunk/doc/build.xml Sat Jun  3 21:43:04 2017
@@ -25,11 +25,256 @@
        compilers:</p>
 
     <ul>
+       <li><link anchor="CMake">All platforms</link></li>
        <li><link anchor="UNIX">UNIX/Linux/Mac OS X/Cygwin/MinGW</link></li>
        <li><link anchor="Windows">Windows using Microsoft Visual 
C++</link></li>
        <li><link anchor="BorlandCC">Windows using Borland C++</link></li>
     </ul>
 
+    <anchor name="CMake"/>
+    <s3 title="Building on all platforms with CMake">
+
+        <p>For building on any platform with any supported build
+           system &XercesCName; uses the CMake build generator and
+           requires that you have <jump
+           href="https://cmake.org/";>CMake</jump> installed.
+           Additionally, a build tool such as <jump
+           href="http://www.gnu.org/software/make/make.html";>GNU
+           make</jump> or <jump
+           href="https://ninja-build.org/";>Ninja</jump> is required for
+           building.  CMake supports a wide range of generators for
+           several different compilers, build tools and popular IDEs,
+           including Eclipse, Kate, Visual Studio, Sublime Text and more.
+           Any of these may be used to build &XercesCName;.  Run
+           <code>cmake --help</code> to display the full list of
+           supported generators for your platform.</p>
+
+        <p>As with all CMake projects, the build process is divided
+           into several parts: configuration and building, followed by
+           (optional) testing and installation. The configuration part is
+           performed by running the <code>cmake</code> command.  The
+           build part is performed by invoking the chosen build tool
+           such as <code>make</code> or <code>ninja</code>, or by opening
+           the generated project files in your IDE, and building from
+           within the IDE.</p>
+
+        <p>Besides the standard <code>cmake</code> <jump
+           
href="https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html";>variables</jump>,
+           &XercesCName; provides a number of project-specific options
+           that are worth mentioning. You can specify one option for each
+           category outlined below. If you do not specify anything for a
+           particular category then <code>cmake</code> will select the
+           most appropriate default, based upon the available options for
+           your system. At the end of its execution <code>cmake</code>
+           prints the selected values for each category.</p>
+
+
+       <p>Net Accessor (used to access network resources):</p>
+
+        <table>
+          <tr>
+            <th>Option</th>
+            <th>Description</th>
+          </tr>
+          <tr>
+            <td><code>-Dnetwork-accessor=curl</code></td>
+            <td>use the libcurl library (only on UNIX)</td>
+          </tr>
+          <tr>
+            <td><code>-Dnetwork-accessor=socket</code></td>
+            <td>use plain sockets (only on UNIX)</td>
+          </tr>
+         <tr>
+            <td><code>-Dnetwork-accessor=cfurl</code></td>
+            <td>use the CFURL API (only on Mac OS X)</td>
+          </tr>
+         <tr>
+            <td><code>-Dnetwork-accessor=winsock</code></td>
+            <td>use WinSock (only on Windows and MinGW)</td>
+          </tr>
+          <tr>
+            <td><code>-Dnetwork:BOOL=OFF</code></td>
+            <td>disable network support</td>
+          </tr>
+        </table>
+
+       <p>Transcoder (used to convert between internal UTF-16 and other 
encodings):</p>
+
+        <table>
+          <tr>
+            <th>Option</th>
+            <th>Description</th>
+          </tr>
+          <tr>
+            <td><code>-Dtranscoder=gnuiconv</code></td>
+            <td>use the GNU iconv library</td>
+          </tr>
+          <tr>
+            <td><code>-Dtranscoder=iconv</code></td>
+            <td>use the iconv library</td>
+          </tr>
+          <tr>
+            <td><code>-Dtranscoder=icu</code></td>
+            <td>use the ICU library</td>
+          </tr>
+          <tr>
+            <td><code>-Dtranscoder=macosunicodeconverter</code></td>
+            <td>use Mac OS X APIs (only on Mac OS X)</td>
+          </tr>
+          <tr>
+            <td><code>-Dtranscoder=windows</code></td>
+            <td>use Windows APIs (only on Windows and MinGW)</td>
+          </tr>
+        </table>
+
+       <p>Message Loader (used to access diagnostics messages):</p>
+
+        <table>
+          <tr>
+            <th>Option</th>
+            <th>Description</th>
+          </tr>
+          <tr>
+            <td><code>-Dmessage-loader=inmemory</code></td>
+            <td>store the messages in memory</td>
+          </tr>
+          <tr>
+            <td><code>-Dmessage-loader=icu</code></td>
+            <td>store the messages using the ICU resource bundles</td>
+          </tr>
+          <tr>
+            <td><code>-Dmessage-loader=iconv</code></td>
+            <td>store the messages in the iconv message catalog</td>
+          </tr>
+        </table>
+
+        <p>Thread support is enabled by default and can be disabled
+           with the <code>-Dthreads:BOOL=OFF</code> option.  If disabled,
+           it will not be possible to select a mutex manager other than
+           <code>nothreads</code>.</p>
+
+        <p>Shared libraries are built by default. You can use the
+           <code>-DBUILD_SHARED_LIBS:BOOL=OFF</code> option to build
+           static libraries.</p>
+
+         <p>If you need to specify compiler executables that should be
+            used to build &XercesCName;, you can set the CC and CXX
+            environment variables when invoking
+            <code>cmake</code>. Similarly, if you need to specify
+            additional compiler or linker options, you can set the
+            CFLAGS, CXXFLAGS, and LDFLAGS environment variables.  For
+            example:</p>
+
+         <source>CC=gcc-5.3 CXX=g++-5.3 CFLAGS=-O3 CXXFLAGS=-O3 cmake 
...</source>
+
+         <note>
+           If building on Windows, the specific Visual Studio version
+           may be selected with some generators, and this may be run
+           from a normal command prompt.  If using a generic generator
+           such as <code>Ninja</code>, then <code>cmake</code> should
+           be run from a Visual Studio command prompt, or in a
+           suitably configured environment, so that the correct
+           compiler will be detected.
+         </note>
+
+         <p>Once the configuration part is complete you can run the
+            build tool of choice.  This may be done generically using
+            <code>cmake --build . [--config=Debug|Release]</code>.
+            Alternatively, a specific build tool, e.g. <code>make</code>,
+            <code>gmake</code>, <code>ninja</code> or
+            <code>msbuild</code> corresponding to the chosen generator
+            may be used directly.  When invoked without a specific
+            target, it will build the &XercesCName; library, all examples
+            and all unit tests.</p>
+
+         <p>If you would like to run the automated test suite, run
+            <code>ctest [-V] [-C Debug|Release]</code>.  This will run
+            all tests.  Additional <jump
+            
href="https://cmake.org/cmake/help/latest/manual/ctest.1.html";>options</jump>
+            are available, such as running a subset of the tests and
+            running the tests in parallel.  If any discrepancies in the
+            output are detected, the differences will be displayed if a
+            <code>diff</code> program is available.</p>
+
+         <p>Finally, install the library and examples.  This may be
+            done generically using <code>cmake --build . --target
+            install</code>.  Alternatively, a specific build tool may be
+            used, e.g. <code>make install</code>.  To change the
+            installation directory, use the
+            <code>-DCMAKE_INSTALL_PREFIX=prefix</code> <code>cmake</code>
+            option.</p>
+
+         <p>Some platforms and configurations may require extra
+            <code>cmake</code> options.  Run <code>cmake -LH</code> to
+            list the additional options, along with a short description
+            for each.  For each of the selection categories mentioned
+            above, the help text will list the valid choices detected for
+            your platform.  Run <code>cmake -LAH</code> for all the
+            additional advanced settings.</p>
+
+         <p>Several examples of configuring, building, testing and
+            installing with CMake using different platforms, generators,
+            and installation options are shown below:</p>
+
+      <table>
+        <tr>
+          <th>Platform</th>
+          <th>Generator</th>
+          <th>Example</th>
+        </tr>
+        <tr>
+          <td>Any</td>
+          <td>Ninja</td>
+          <td><code>mkdir build</code><br/>
+          <code>cd build</code><br/>
+          <code>cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/opt/xerces-c 
-DCMAKE_BUILD_TYPE=Release -Dnetwork-accessor=curl 
/path/to/xerces-c/source</code><br/>
+          <code>ninja</code><br/>
+          <code>ctest -V -j 8</code><br/>
+          <code>ninja install</code></td>
+        </tr>
+        <tr>
+          <td>Unix</td>
+          <td>Unix Makefiles</td>
+          <td><code>mkdir build</code><br/>
+          <code>cd build</code><br/>
+          <code>cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/opt/xerces-c 
-DCMAKE_BUILD_TYPE=Debug -Dmessage-loader=icu 
/path/to/xerces-c/source</code><br/>
+          <code>make -j8</code><br/>
+          <code>make test</code><br/>
+          <code>make install</code></td>
+        </tr>
+        <tr>
+          <td>Windows</td>
+          <td>msbuild with VS2015 x64</td>
+          <td><code>mkdir build</code><br/>
+          <code>cd build</code><br/>
+          <code>cmake -G "Visual Studio 14 2015 Win64" 
-DCMAKE_INSTALL_PREFIX=D:\libs \path\to\xerces-c\source</code><br/>
+          <code>cmake --build . --config Debug</code><br/>
+          <code>ctest -V -C Debug -j 4</code><br/>
+          <code>cmake --build . --config Debug --target install</code></td>
+        </tr>
+        </table>
+        <p/>
+
+        <note>
+          Note that different UNIX platforms use different system
+          environment variables for finding shared libraries. On Linux
+          and Solaris, the environment variable name is
+          <code>LD_LIBRARY_PATH</code>, on AIX it is
+          <code>LIBPATH</code>, on Mac OS X it is
+          <code>DYLD_FALLBACK_LIBRARY_PATH</code>, and on HP-UX it is
+          <code>SHLIB_PATH</code>.
+        </note>
+
+       <note>
+          Note that Windows is different from the UNIX platforms in
+          the way it finds shared libraries at run time.  While UNIX
+          platforms may use the <code>LD_LIBRARY_PATH</code>
+          environment variable, Windows uses the <code>PATH</code>
+          environment variable if the library is not in the same
+          directory as the executable.
+        </note>
+    </s3>
+
     <anchor name="UNIX"/>
     <s3 title="Building on UNIX/Linux/Mac OS X/Cygwin/MinGW platforms">
 

Added: xerces/c/trunk/samples/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/CMakeLists.txt?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/CMakeLists.txt (added)
+++ xerces/c/trunk/samples/CMakeLists.txt Sat Jun  3 21:43:04 2017
@@ -0,0 +1,201 @@
+# CMake build for xerces-c
+#
+# Written by Roger Leigh <[email protected]>
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Definitions required for building
+add_definitions(
+  -DHAVE_CONFIG_H
+)
+
+# Search the project binary dir for config.h
+include_directories(
+  ${PROJECT_BINARY_DIR}
+  ${PROJECT_SOURCE_DIR}/src
+  ${PROJECT_BINARY_DIR}/src
+  ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+set(EXTRA_DIST
+  data/personal.dtd
+  data/personal.xml
+  data/personal.xsd
+  data/personal-schema.xml
+  data/redirect.dtd
+  data/long.xml
+  )
+
+macro(add_sample_executable name)
+  add_executable(${name} ${ARGN})
+  target_link_libraries(${name} xerces-c)
+  set_target_properties(${name} PROPERTIES FOLDER "Samples")
+  list(APPEND sample_programs ${name})
+endmacro()
+
+add_sample_executable(CreateDOMDocument
+  src/CreateDOMDocument/CreateDOMDocument.cpp
+  )
+
+add_sample_executable(DOMCount
+  src/DOMCount/DOMCount.cpp
+  src/DOMCount/DOMCount.hpp
+  )
+
+add_sample_executable(DOMPrint
+  src/DOMPrint/DOMPrint.cpp
+  src/DOMPrint/DOMPrintErrorHandler.cpp
+  src/DOMPrint/DOMPrintErrorHandler.hpp
+  src/DOMPrint/DOMPrintFilter.cpp
+  src/DOMPrint/DOMPrintFilter.hpp
+  src/DOMPrint/DOMTreeErrorReporter.cpp
+  src/DOMPrint/DOMTreeErrorReporter.hpp
+  )
+
+add_sample_executable(EnumVal
+  src/EnumVal/EnumVal.cpp
+  )
+
+add_sample_executable(MemParse
+  src/MemParse/MemParse.cpp
+  src/MemParse/MemParse.hpp
+  src/MemParse/MemParseHandlers.cpp
+  src/MemParse/MemParseHandlers.hpp
+  )
+
+add_sample_executable(PParse
+  src/PParse/PParse.cpp
+  src/PParse/PParse.hpp
+  src/PParse/PParseHandlers.cpp
+  src/PParse/PParseHandlers.hpp
+  )
+
+add_sample_executable(PSVIWriter
+  src/PSVIWriter/PSVIWriter.cpp
+  src/PSVIWriter/PSVIWriter.hpp
+  src/PSVIWriter/PSVIWriterHandlers.cpp
+  src/PSVIWriter/PSVIWriterHandlers.hpp
+  )
+
+add_sample_executable(Redirect
+  src/Redirect/Redirect.cpp
+  src/Redirect/Redirect.hpp
+  src/Redirect/RedirectHandlers.cpp
+  src/Redirect/RedirectHandlers.hpp
+  )
+
+add_sample_executable(SAX2Count
+  src/SAX2Count/SAX2Count.cpp
+  src/SAX2Count/SAX2Count.hpp
+  src/SAX2Count/SAX2CountHandlers.cpp
+  src/SAX2Count/SAX2CountHandlers.hpp
+  )
+
+add_sample_executable(SAX2Print
+  src/SAX2Print/SAX2FilterHandlers.cpp
+  src/SAX2Print/SAX2FilterHandlers.hpp
+  src/SAX2Print/SAX2Print.cpp
+  src/SAX2Print/SAX2Print.hpp
+  src/SAX2Print/SAX2PrintHandlers.cpp
+  src/SAX2Print/SAX2PrintHandlers.hpp
+  )
+
+add_sample_executable(SAXCount
+  src/SAXCount/SAXCount.cpp
+  src/SAXCount/SAXCount.hpp
+  src/SAXCount/SAXCountHandlers.cpp
+  src/SAXCount/SAXCountHandlers.hpp
+  )
+
+add_sample_executable(SAXPrint
+  src/SAXPrint/SAXPrint.cpp
+  src/SAXPrint/SAXPrint.hpp
+  src/SAXPrint/SAXPrintHandlers.cpp
+  src/SAXPrint/SAXPrintHandlers.hpp
+  )
+
+add_sample_executable(SCMPrint
+  src/SCMPrint/SCMPrint.cpp
+  )
+
+add_sample_executable(SEnumVal
+  src/SEnumVal/SEnumVal.cpp
+  )
+
+add_sample_executable(StdInParse
+  src/StdInParse/StdInParse.cpp
+  src/StdInParse/StdInParse.hpp
+  src/StdInParse/StdInParseHandlers.cpp
+  src/StdInParse/StdInParseHandlers.hpp
+  )
+
+add_sample_executable(XInclude
+  src/XInclude/XInclude.cpp
+  src/XInclude/XInclude.hpp
+  )
+
+install(
+  TARGETS ${sample_programs}
+  RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+  COMPONENT "runtime")
+
+# Run tests
+include(XercesTest)
+
+add_xerces_sample_test(SAXCount          COMMAND SAXCount EXPECT_FAIL)
+add_xerces_sample_test(SAXCount1         COMMAND SAXCount -v=never 
personal.xml)
+add_xerces_sample_test(SAXCount2         COMMAND SAXCount          
personal.xml)
+add_xerces_sample_test(SAXCount3         COMMAND SAXCount -n -s    
personal-schema.xml)
+add_xerces_sample_test(SAXPrint          COMMAND SAXPrint EXPECT_FAIL)
+add_xerces_sample_test(SAXPrint1         COMMAND SAXPrint -v=never 
personal.xml)
+add_xerces_sample_test(SAXPrint2         COMMAND SAXPrint          
personal.xml)
+add_xerces_sample_test(SAXPrint3         COMMAND SAXPrint -n -s    
personal-schema.xml)
+add_xerces_sample_test(SAX2Count         COMMAND SAX2Count EXPECT_FAIL)
+add_xerces_sample_test(SAX2Count1        COMMAND SAX2Count -v=never 
personal.xml)
+add_xerces_sample_test(SAX2Count2        COMMAND SAX2Count          
personal.xml)
+add_xerces_sample_test(SAX2Count3        COMMAND SAX2Count -p       
personal-schema.xml)
+add_xerces_sample_test(SAX2Print         COMMAND SAX2Print EXPECT_FAIL)
+add_xerces_sample_test(SAX2Print1        COMMAND SAX2Print -v=never 
personal.xml)
+add_xerces_sample_test(SAX2Print2        COMMAND SAX2Print          
personal.xml)
+add_xerces_sample_test(SAX2Print3        COMMAND SAX2Print -p       
personal-schema.xml)
+add_xerces_sample_test(SAX2Print4        COMMAND SAX2Print          
personal.xsd)
+add_xerces_sample_test(SAX2Print5        COMMAND SAX2Print -sa      
personal.xsd)
+add_xerces_sample_test(MemParse          COMMAND MemParse)
+add_xerces_sample_test(MemParse1         COMMAND MemParse -v=never)
+add_xerces_sample_test(Redirect          COMMAND Redirect EXPECT_FAIL)
+add_xerces_sample_test(Redirect1         COMMAND Redirect personal.xml)
+add_xerces_sample_test(DOMCount          COMMAND DOMCount EXPECT_FAIL)
+add_xerces_sample_test(DOMCount1         COMMAND DOMCount -v=never 
personal.xml)
+add_xerces_sample_test(DOMCount2         COMMAND DOMCount          
personal.xml)
+add_xerces_sample_test(DOMCount3         COMMAND DOMCount -n -s    
personal-schema.xml)
+add_xerces_sample_test(DOMPrint          COMMAND DOMPrint EXPECT_FAIL)
+add_xerces_sample_test(DOMPrint1         COMMAND DOMPrint -wfpp=on -wddc=off 
-v=never personal.xml)
+add_xerces_sample_test(DOMPrint2         COMMAND DOMPrint -wfpp=on -wddc=off   
       personal.xml)
+add_xerces_sample_test(DOMPrint3         COMMAND DOMPrint -wfpp=on -wddc=on    
       personal.xml)
+add_xerces_sample_test(DOMPrint4         COMMAND DOMPrint -wfpp=on -wddc=off 
-n -s    personal-schema.xml)
+add_xerces_sample_test(DOMPrint5         COMMAND DOMPrint -v=never 
-xpath=//name      personal.xml)
+add_xerces_sample_test(StdInParse1       COMMAND StdInParse STDIN personal.xml)
+add_xerces_sample_test(StdInParse2       COMMAND StdInParse STDIN personal.xml)
+add_xerces_sample_test(StdInParse3       COMMAND StdInParse STDIN 
personal-schema.xml)
+add_xerces_sample_test(PParse            COMMAND PParse EXPECT_FAIL)
+add_xerces_sample_test(PParse1           COMMAND PParse       personal.xml)
+add_xerces_sample_test(PParse2           COMMAND PParse -n -s 
personal-schema.xml)
+add_xerces_sample_test(EnumVal           COMMAND EnumVal EXPECT_FAIL)
+add_xerces_sample_test(EnumVal1          COMMAND EnumVal personal.xml)
+add_xerces_sample_test(SEnumVal          COMMAND SEnumVal EXPECT_FAIL)
+add_xerces_sample_test(SEnumVal1         COMMAND SEnumVal personal-schema.xml)
+add_xerces_sample_test(CreateDOMDocument COMMAND CreateDOMDocument)
+add_xerces_sample_test(SAXPrintLong      COMMAND SAXPrint -v=never long.xml)

Modified: xerces/c/trunk/samples/Makefile.am
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/Makefile.am?rev=1797546&r1=1797545&r2=1797546&view=diff
==============================================================================
--- xerces/c/trunk/samples/Makefile.am (original)
+++ xerces/c/trunk/samples/Makefile.am Sat Jun  3 21:43:04 2017
@@ -26,11 +26,13 @@ LDADD =                             ${to
 # header file when doing out-of-tree builds
 AM_CPPFLAGS =                       -I${top_builddir}/src -I${top_srcdir}/src
 
-EXTRA_DIST =                        data/personal.dtd \
+EXTRA_DIST =                        CMakeLists.txt \
+                                    data/personal.dtd \
                                     data/personal.xml \
                                     data/personal.xsd \
                                     data/personal-schema.xml \
                                     data/redirect.dtd
+                                    expected
 
 sampleprogs =
 

Added: xerces/c/trunk/samples/expected/CreateDOMDocument.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/CreateDOMDocument.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/CreateDOMDocument.log (added)
+++ xerces/c/trunk/samples/expected/CreateDOMDocument.log Sat Jun  3 21:43:04 
2017
@@ -0,0 +1 @@
+The tree just created contains: 4 elements.

Added: xerces/c/trunk/samples/expected/DOMCount.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMCount.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMCount.log (added)
+++ xerces/c/trunk/samples/expected/DOMCount.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,20 @@
+
+Usage:
+    DOMCount [options] <XML file | List file>
+
+This program invokes the DOMLSParser, builds the DOM tree,
+and then prints the number of elements found in each XML file.
+
+Options:
+    -l          Indicate the input file is a List File that has a list of xml 
files.
+                Default to off (Input file is an XML file).
+    -v=xxx      Validation scheme [always | never | auto*].
+    -n          Enable namespace processing. Defaults to off.
+    -s          Enable schema processing. Defaults to off.
+    -f          Enable full schema constraint checking. Defaults to off.
+    -locale=ll_CC specify the locale, default: en_US.
+    -p          Print out names of elements and attributes encountered.
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+

Added: xerces/c/trunk/samples/expected/DOMCount1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMCount1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMCount1.log (added)
+++ xerces/c/trunk/samples/expected/DOMCount1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems).

Added: xerces/c/trunk/samples/expected/DOMCount2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMCount2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMCount2.log (added)
+++ xerces/c/trunk/samples/expected/DOMCount2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems).

Added: xerces/c/trunk/samples/expected/DOMCount3.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMCount3.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMCount3.log (added)
+++ xerces/c/trunk/samples/expected/DOMCount3.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal-schema.xml:{timing removed}(37 elems).

Added: xerces/c/trunk/samples/expected/DOMPrint.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,30 @@
+
+Usage:
+    DOMPrint [options] <XML file>
+
+This program invokes the DOM parser, and builds the DOM tree.
+It then asks the DOMLSSerializer to serialize the DOM tree.
+Options:
+    -e          create entity reference nodes. Default is no expansion.
+    -v=xxx      Validation scheme [always | never | auto*].
+    -n          Enable namespace processing. Default is off.
+    -s          Enable schema processing. Default is off.
+    -f          Enable full schema constraint checking. Defaults is off.
+    -wenc=XXX   Use a particular encoding for output. Default is
+                the same encoding as the input XML file. UTF-8 if
+                input XML file has not XML declaration.
+    -wfile=xxx  Write to a file instead of stdout.
+    -wscs=xxx   Enable/Disable split-cdata-sections.      Default on
+    -wddc=xxx   Enable/Disable discard-default-content.   Default on
+    -wflt=xxx   Enable/Disable filtering.                 Default off
+    -wfpp=xxx   Enable/Disable format-pretty-print.       Default off
+    -wbom=xxx   Enable/Disable write Byte-Order-Mark      Default off
+    -xpath=xxx  Prints only the nodes matching the given XPath.
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+
+The parser has intrinsic support for the following encodings:
+    UTF-8, US-ASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
+    WINDOWS-1252, IBM1140, IBM037, IBM1047.
+

Added: xerces/c/trunk/samples/expected/DOMPrint1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint1.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
+<!DOCTYPE personnel SYSTEM "personal.dtd">
+<!-- @version: -->
+<personnel>
+
+  <person id="Big.Boss">
+    <name>
+      <family>Boss</family> 
+      <given>Big</given>
+    </name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"/>
+  </person>
+
+  <person id="one.worker">
+    <name>
+      <family>Worker</family> 
+      <given>One</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="two.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Two</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="three.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Three</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="four.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Four</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="five.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Five</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+
+</personnel>

Added: xerces/c/trunk/samples/expected/DOMPrint2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint2.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
+<!DOCTYPE personnel SYSTEM "personal.dtd">
+<!-- @version: -->
+<personnel>
+
+  <person id="Big.Boss">
+    <name>
+      <family>Boss</family> 
+      <given>Big</given>
+    </name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"/>
+  </person>
+
+  <person id="one.worker">
+    <name>
+      <family>Worker</family> 
+      <given>One</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="two.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Two</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="three.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Three</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="four.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Four</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="five.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Five</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+
+</personnel>

Added: xerces/c/trunk/samples/expected/DOMPrint3.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint3.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint3.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint3.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
+<!DOCTYPE personnel SYSTEM "personal.dtd">
+<!-- @version: -->
+<personnel>
+
+  <person id="Big.Boss">
+    <name>
+      <family>Boss</family> 
+      <given>Big</given>
+    </name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"/>
+  </person>
+
+  <person id="one.worker">
+    <name>
+      <family>Worker</family> 
+      <given>One</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="two.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Two</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="three.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Three</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="four.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Four</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person id="five.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Five</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+
+</personnel>

Added: xerces/c/trunk/samples/expected/DOMPrint4.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint4.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint4.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint4.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<?proc-inst-1 'foo' ?>
+<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="personal.xsd">
+
+  <person contr="false" id="Big.Boss">
+    <name xml:base="foo/bar">
+      <family xml:base="bar/bar">Boss</family> 
+      <given xml:base="car/bar">Big</given>
+      <?proc-inst-2 'foobar' ?>
+    </name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"/>
+  </person>
+
+  <person contr="false" id="one.worker" xml:base="/auto/bar">
+    <name xml:base="/car/foo/">
+      <family xml:base="bar/bar">Worker</family> 
+      <given>One</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person contr="false" id="two.worker" 
xml:base="http://www.example.com/car/car";>
+    <name xml:base="/bar/foo/">
+      <family xml:base="foo/bar">Worker</family> 
+      <given>Two</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person contr="false" id="three.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Three</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person contr="false" id="four.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Four</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+  <person contr="false" id="five.worker">
+    <name>
+      <family>Worker</family> 
+      <given>Five</given>
+    </name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"/>
+  </person>
+
+
+</personnel>

Added: xerces/c/trunk/samples/expected/DOMPrint5.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/DOMPrint5.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/DOMPrint5.log (added)
+++ xerces/c/trunk/samples/expected/DOMPrint5.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+<name><family>Boss</family> 
<given>Big</given></name><name><family>Worker</family> 
<given>One</given></name><name><family>Worker</family> 
<given>Two</given></name><name><family>Worker</family> 
<given>Three</given></name><name><family>Worker</family> 
<given>Four</given></name><name><family>Worker</family> 
<given>Five</given></name>

Added: xerces/c/trunk/samples/expected/EnumVal.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/EnumVal.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/EnumVal.log (added)
+++ xerces/c/trunk/samples/expected/EnumVal.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,9 @@
+
+Usage:
+    EnumVal <XML file>
+
+This program parses the specified XML file, then shows how to
+enumerate the contents of the DTD Grammar. Essentially,
+shows how one can access the DTD information stored in internal
+data structures.
+

Added: xerces/c/trunk/samples/expected/EnumVal1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/EnumVal1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/EnumVal1.log (added)
+++ xerces/c/trunk/samples/expected/EnumVal1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,34 @@
+
+ELEMENTS:
+----------------------------
+  Name: personnel
+  Content Model: (person)+
+
+  Name: person
+  Content Model: (name,email*,url*,link?)
+  Attributes:
+    Name:id, Type: ID
+
+  Name: name
+  Content Model: (#PCDATA|family|given)*
+
+  Name: email
+  Content Model: (#PCDATA)
+
+  Name: url
+  Content Model: EMPTY
+  Attributes:
+    Name:href, Type: CDATA
+
+  Name: link
+  Content Model: EMPTY
+  Attributes:
+    Name:manager, Type: IDREF(S)
+    Name:subordinates, Type: IDREF(S)
+
+  Name: family
+  Content Model: (#PCDATA)
+
+  Name: given
+  Content Model: (#PCDATA)
+

Added: xerces/c/trunk/samples/expected/MemParse.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/MemParse.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/MemParse.log (added)
+++ xerces/c/trunk/samples/expected/MemParse.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,23 @@
+
+Finished parsing the memory buffer containing the following XML statements:
+
+<?xml version='1.0' encoding='ascii'?>
+<!DOCTYPE company [
+<!ELEMENT company     (product,category,developedAt)>
+<!ELEMENT product     (#PCDATA)>
+<!ELEMENT category    (#PCDATA)>
+<!ATTLIST category idea CDATA #IMPLIED>
+<!ELEMENT developedAt (#PCDATA)>
+]>
+
+<company>
+    <product>XML4C</product>
+    <category idea='great'>XML Parsing Tools</category>
+    <developedAt>
+      IBM Center for Java Technology, Silicon Valley, Cupertino, CA
+    </developedAt>
+</company>
+
+
+Parsing took{timing removed}(4 elements, 1 attributes, 16 spaces, 95 
characters).
+

Added: xerces/c/trunk/samples/expected/MemParse1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/MemParse1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/MemParse1.log (added)
+++ xerces/c/trunk/samples/expected/MemParse1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,23 @@
+
+Finished parsing the memory buffer containing the following XML statements:
+
+<?xml version='1.0' encoding='ascii'?>
+<!DOCTYPE company [
+<!ELEMENT company     (product,category,developedAt)>
+<!ELEMENT product     (#PCDATA)>
+<!ELEMENT category    (#PCDATA)>
+<!ATTLIST category idea CDATA #IMPLIED>
+<!ELEMENT developedAt (#PCDATA)>
+]>
+
+<company>
+    <product>XML4C</product>
+    <category idea='great'>XML Parsing Tools</category>
+    <developedAt>
+      IBM Center for Java Technology, Silicon Valley, Cupertino, CA
+    </developedAt>
+</company>
+
+
+Parsing took{timing removed}(4 elements, 1 attributes, 0 spaces, 111 
characters).
+

Added: xerces/c/trunk/samples/expected/PParse.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/PParse.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/PParse.log (added)
+++ xerces/c/trunk/samples/expected/PParse.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,20 @@
+
+Usage:
+    PParse [options] <XML file>
+
+This program demonstrates the progressive parse capabilities of
+the parser system. It allows you to do a scanFirst() call followed by
+a loop which calls scanNext(). You can drop out when you've found what
+ever it is you want. In our little test, our event handler looks for
+16 new elements then sets a flag to indicate its found what it wants.
+At that point, our progressive parse loop exits.
+
+Options:
+      -v=xxx        - Validation scheme [always | never | auto*].
+      -n            - Enable namespace processing [default is off].
+      -s            - Enable schema processing [default is off].
+      -f            - Enable full schema constraint checking [default is off].
+      -?            - Show this help.
+
+  * = Default if not provided explicitly.
+

Added: xerces/c/trunk/samples/expected/PParse1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/PParse1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/PParse1.log (added)
+++ xerces/c/trunk/samples/expected/PParse1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)

Added: xerces/c/trunk/samples/expected/PParse2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/PParse2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/PParse2.log (added)
+++ xerces/c/trunk/samples/expected/PParse2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)

Added: xerces/c/trunk/samples/expected/Redirect.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/Redirect.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/Redirect.log (added)
+++ xerces/c/trunk/samples/expected/Redirect.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,11 @@
+
+Usage:
+    Redirect <XML file>
+
+This program installs an entity resolver, traps the call to
+the external DTD file and redirects it to another application
+specific file which contains the actual dtd.
+
+The program then counts and reports the number of elements and
+attributes in the given XML file.
+

Added: xerces/c/trunk/samples/expected/Redirect1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/Redirect1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/Redirect1.log (added)
+++ xerces/c/trunk/samples/expected/Redirect1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)

Added: xerces/c/trunk/samples/expected/SAX2Count.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Count.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Count.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Count.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,25 @@
+
+Usage:
+    SAX2Count [options] <XML file | List file>
+
+This program invokes the SAX2XMLReader, and then prints the
+number of elements, attributes, spaces and characters found
+in each XML file, using SAX2 API.
+
+Options:
+    -l          Indicate the input file is a List File that has a list of xml 
files.
+                Default to off (Input file is an XML file).
+    -v=xxx      Validation scheme [always | never | auto*].
+    -f          Enable full schema constraint checking processing. Defaults to 
off.
+    -p          Enable namespace-prefixes feature. Defaults to off.
+    -n          Disable namespace processing. Defaults to on.
+                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
+    -s          Disable schema processing. Defaults to on.
+                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
+    -i          Disable identity constraint checking. Defaults to on.
+                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
+    -locale=ll_CC specify the locale, default: en_US.
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+

Added: xerces/c/trunk/samples/expected/SAX2Count1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Count1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Count1.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Count1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)

Added: xerces/c/trunk/samples/expected/SAX2Count2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Count2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Count2.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Count2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)

Added: xerces/c/trunk/samples/expected/SAX2Count3.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Count3.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Count3.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Count3.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)

Added: xerces/c/trunk/samples/expected/SAX2Print.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,28 @@
+
+Usage:
+    SAX2Print [options] <XML file>
+
+This program invokes the SAX2XMLReader, and then prints the
+data returned by the various SAX2 handlers for the specified
+XML file.
+
+Options:
+    -u=xxx      Handle unrepresentable chars [fail | rep | ref*].
+    -v=xxx      Validation scheme [always | never | auto*].
+    -e          Expand Namespace Alias with URI's. Defaults to off.
+    -x=XXX      Use a particular encoding for output (LATIN1*).
+    -f          Enable full schema constraint checking processing. Defaults to 
off.
+    -p          Enable namespace-prefixes feature. Defaults to off.
+    -n          Disable namespace processing. Defaults to on.
+                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
+    -s          Disable schema processing. Defaults to on.
+                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
+    -sa         Print the attributes in alphabetic order. Defaults to off.
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+
+The parser has intrinsic support for the following encodings:
+    UTF-8, US-ASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
+    WINDOWS-1252, IBM1140, IBM037, IBM1047.
+

Added: xerces/c/trunk/samples/expected/SAX2Print1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print1.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<personnel>
+
+  <person id="Big.Boss">
+    <name><family>Boss</family> <given>Big</given></name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"></link>
+  </person>
+
+  <person id="one.worker">
+    <name><family>Worker</family> <given>One</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="two.worker">
+    <name><family>Worker</family> <given>Two</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="three.worker">
+    <name><family>Worker</family> <given>Three</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="four.worker">
+    <name><family>Worker</family> <given>Four</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="five.worker">
+    <name><family>Worker</family> <given>Five</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+</personnel>

Added: xerces/c/trunk/samples/expected/SAX2Print2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print2.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<personnel>
+
+  <person id="Big.Boss">
+    <name><family>Boss</family> <given>Big</given></name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"></link>
+  </person>
+
+  <person id="one.worker">
+    <name><family>Worker</family> <given>One</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="two.worker">
+    <name><family>Worker</family> <given>Two</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="three.worker">
+    <name><family>Worker</family> <given>Three</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="four.worker">
+    <name><family>Worker</family> <given>Four</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="five.worker">
+    <name><family>Worker</family> <given>Five</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+</personnel>

Added: xerces/c/trunk/samples/expected/SAX2Print3.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print3.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print3.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print3.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<?proc-inst-1 'foo' ?><personnel 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="personal.xsd">
+
+  <person id="Big.Boss" contr="false">
+    <name xml:base="foo/bar"><family xml:base="bar/bar">Boss</family> <given 
xml:base="car/bar">Big</given><?proc-inst-2 'foobar' ?></name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"></link>
+  </person>
+
+  <person id="one.worker" xml:base="/auto/bar" contr="false">
+    <name xml:base="/car/foo/"><family xml:base="bar/bar">Worker</family> 
<given>One</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="two.worker" xml:base="http://www.example.com/car/car"; 
contr="false">
+    <name xml:base="/bar/foo/"><family xml:base="foo/bar">Worker</family> 
<given>Two</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="three.worker" contr="false">
+    <name><family>Worker</family> <given>Three</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="four.worker" contr="false">
+    <name><family>Worker</family> <given>Four</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="five.worker" contr="false">
+    <name><family>Worker</family> <given>Five</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+</personnel>

Added: xerces/c/trunk/samples/expected/SAX2Print4.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print4.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print4.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print4.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<xs:schema>
+
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace";>
+   <xs:annotation>
+     <xs:documentation>
+        The schemaLocation of the relevant file is
+        "http://www.w3.org/2001/xml.xsd"; however,
+        we don't want to assume people are always
+        connected to the 'net when playing with this file.
+     </xs:documentation>
+   </xs:annotation>
+ </xs:import>
+
+ <xs:element name="personnel">
+  <xs:complexType>
+   <xs:sequence>
+     <xs:element ref="person" minOccurs="1" maxOccurs="unbounded"></xs:element>
+   </xs:sequence>
+  </xs:complexType>
+
+  <xs:unique name="unique1">
+   <xs:selector xpath="person"></xs:selector>
+   <xs:field xpath="name/given"></xs:field>
+   <xs:field xpath="name/family"></xs:field>
+  </xs:unique>
+  <xs:key name="empid">
+   <xs:selector xpath="person"></xs:selector>
+   <xs:field xpath="@id"></xs:field>
+  </xs:key>
+  <xs:keyref name="keyref1" refer="empid">
+   <xs:selector xpath="person"></xs:selector> 
+   <xs:field xpath="link/@manager"></xs:field>  
+  </xs:keyref>
+
+ </xs:element>
+
+ <xs:element name="person">
+  <xs:complexType>
+   <xs:sequence>
+     <xs:element ref="name"></xs:element>
+     <xs:element ref="email" minOccurs="0" maxOccurs="unbounded"></xs:element>
+     <xs:element ref="url" minOccurs="0" maxOccurs="unbounded"></xs:element>
+     <xs:element ref="link" minOccurs="0" maxOccurs="1"></xs:element>
+   </xs:sequence>
+   <xs:attribute name="id" type="xs:ID" use="required"></xs:attribute>
+   <xs:attribute name="note" type="xs:string"></xs:attribute>
+   <xs:attribute name="contr" default="false">
+    <xs:simpleType>
+     <xs:restriction base="xs:string">
+       <xs:enumeration value="true"></xs:enumeration>
+       <xs:enumeration value="false"></xs:enumeration>
+     </xs:restriction>
+    </xs:simpleType>
+   </xs:attribute>
+   <xs:attribute name="salary" type="xs:integer"></xs:attribute>
+   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="name">
+  <xs:complexType>
+   <xs:all>
+    <xs:element ref="family"></xs:element>
+    <xs:element ref="given"></xs:element>
+   </xs:all>
+   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="family">
+   <xs:complexType>
+     <xs:simpleContent>
+       <xs:extension base="xs:string">
+          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+        </xs:extension>
+     </xs:simpleContent>
+   </xs:complexType>
+ </xs:element>
+
+ <xs:element name="given">
+   <xs:complexType>
+     <xs:simpleContent>
+       <xs:extension base="xs:string">
+          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+        </xs:extension>
+     </xs:simpleContent>
+   </xs:complexType>
+ </xs:element>
+
+ <xs:element name="email" type="xs:string"></xs:element>
+
+ <xs:element name="url">
+  <xs:complexType>
+   <xs:attribute name="href" type="xs:string" default="http://";></xs:attribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="link">
+  <xs:complexType>
+   <xs:attribute name="manager" type="xs:IDREF"></xs:attribute>
+   <xs:attribute name="subordinates" type="xs:IDREFS"></xs:attribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:notation name="gif" public="-//APP/Photoshop/4.0" 
system="photoshop.exe"></xs:notation>
+
+</xs:schema>

Added: xerces/c/trunk/samples/expected/SAX2Print5.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAX2Print5.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAX2Print5.log (added)
+++ xerces/c/trunk/samples/expected/SAX2Print5.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<xs:schema>
+
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace";>
+   <xs:annotation>
+     <xs:documentation>
+        The schemaLocation of the relevant file is
+        "http://www.w3.org/2001/xml.xsd"; however,
+        we don't want to assume people are always
+        connected to the 'net when playing with this file.
+     </xs:documentation>
+   </xs:annotation>
+ </xs:import>
+
+ <xs:element name="personnel">
+  <xs:complexType>
+   <xs:sequence>
+     <xs:element maxOccurs="unbounded" minOccurs="1" ref="person"></xs:element>
+   </xs:sequence>
+  </xs:complexType>
+
+  <xs:unique name="unique1">
+   <xs:selector xpath="person"></xs:selector>
+   <xs:field xpath="name/given"></xs:field>
+   <xs:field xpath="name/family"></xs:field>
+  </xs:unique>
+  <xs:key name="empid">
+   <xs:selector xpath="person"></xs:selector>
+   <xs:field xpath="@id"></xs:field>
+  </xs:key>
+  <xs:keyref name="keyref1" refer="empid">
+   <xs:selector xpath="person"></xs:selector> 
+   <xs:field xpath="link/@manager"></xs:field>  
+  </xs:keyref>
+
+ </xs:element>
+
+ <xs:element name="person">
+  <xs:complexType>
+   <xs:sequence>
+     <xs:element ref="name"></xs:element>
+     <xs:element maxOccurs="unbounded" minOccurs="0" ref="email"></xs:element>
+     <xs:element maxOccurs="unbounded" minOccurs="0" ref="url"></xs:element>
+     <xs:element maxOccurs="1" minOccurs="0" ref="link"></xs:element>
+   </xs:sequence>
+   <xs:attribute name="id" type="xs:ID" use="required"></xs:attribute>
+   <xs:attribute name="note" type="xs:string"></xs:attribute>
+   <xs:attribute default="false" name="contr">
+    <xs:simpleType>
+     <xs:restriction base="xs:string">
+       <xs:enumeration value="true"></xs:enumeration>
+       <xs:enumeration value="false"></xs:enumeration>
+     </xs:restriction>
+    </xs:simpleType>
+   </xs:attribute>
+   <xs:attribute name="salary" type="xs:integer"></xs:attribute>
+   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="name">
+  <xs:complexType>
+   <xs:all>
+    <xs:element ref="family"></xs:element>
+    <xs:element ref="given"></xs:element>
+   </xs:all>
+   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="family">
+   <xs:complexType>
+     <xs:simpleContent>
+       <xs:extension base="xs:string">
+          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+        </xs:extension>
+     </xs:simpleContent>
+   </xs:complexType>
+ </xs:element>
+
+ <xs:element name="given">
+   <xs:complexType>
+     <xs:simpleContent>
+       <xs:extension base="xs:string">
+          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"; 
processContents="skip"></xs:anyAttribute>
+        </xs:extension>
+     </xs:simpleContent>
+   </xs:complexType>
+ </xs:element>
+
+ <xs:element name="email" type="xs:string"></xs:element>
+
+ <xs:element name="url">
+  <xs:complexType>
+   <xs:attribute default="http://"; name="href" type="xs:string"></xs:attribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:element name="link">
+  <xs:complexType>
+   <xs:attribute name="manager" type="xs:IDREF"></xs:attribute>
+   <xs:attribute name="subordinates" type="xs:IDREFS"></xs:attribute>
+  </xs:complexType>
+ </xs:element>
+
+ <xs:notation name="gif" public="-//APP/Photoshop/4.0" 
system="photoshop.exe"></xs:notation>
+
+</xs:schema>

Added: xerces/c/trunk/samples/expected/SAXCount.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXCount.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXCount.log (added)
+++ xerces/c/trunk/samples/expected/SAXCount.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,20 @@
+
+Usage:
+    SAXCount [options] <XML file | List file>
+
+This program invokes the SAX Parser, and then prints the
+number of elements, attributes, spaces and characters found
+in each XML file, using SAX API.
+
+Options:
+    -l          Indicate the input file is a List File that has a list of xml 
files.
+                Default to off (Input file is an XML file).
+    -v=xxx      Validation scheme [always | never | auto*].
+    -n          Enable namespace processing. Defaults to off.
+    -s          Enable schema processing. Defaults to off.
+    -f          Enable full schema constraint checking. Defaults to off.
+    -locale=ll_CC specify the locale, default: en_US.
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+

Added: xerces/c/trunk/samples/expected/SAXCount1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXCount1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXCount1.log (added)
+++ xerces/c/trunk/samples/expected/SAXCount1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)

Added: xerces/c/trunk/samples/expected/SAXCount2.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXCount2.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXCount2.log (added)
+++ xerces/c/trunk/samples/expected/SAXCount2.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)

Added: xerces/c/trunk/samples/expected/SAXCount3.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXCount3.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXCount3.log (added)
+++ xerces/c/trunk/samples/expected/SAXCount3.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1 @@
+personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)

Added: xerces/c/trunk/samples/expected/SAXPrint.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXPrint.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXPrint.log (added)
+++ xerces/c/trunk/samples/expected/SAXPrint.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,23 @@
+
+Usage:
+    SAXPrint [options] <XML file>
+
+This program invokes the SAX Parser, and then prints the
+data returned by the various SAX handlers for the specified
+XML file.
+
+Options:
+    -u=xxx      Handle unrepresentable chars [fail | rep | ref*].
+    -v=xxx      Validation scheme [always | never | auto*].
+    -n          Enable namespace processing.
+    -s          Enable schema processing.
+    -f          Enable full schema constraint checking.
+    -x=XXX      Use a particular encoding for output (LATIN1*).
+    -?          Show this help.
+
+  * = Default if not provided explicitly.
+
+The parser has intrinsic support for the following encodings:
+    UTF-8, US-ASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
+    WINDOWS-1252, IBM1140, IBM037, IBM1047.
+

Added: xerces/c/trunk/samples/expected/SAXPrint1.log
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/samples/expected/SAXPrint1.log?rev=1797546&view=auto
==============================================================================
--- xerces/c/trunk/samples/expected/SAXPrint1.log (added)
+++ xerces/c/trunk/samples/expected/SAXPrint1.log Sat Jun  3 21:43:04 2017
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="LATIN1"?>
+<personnel>
+
+  <person id="Big.Boss">
+    <name><family>Boss</family> <given>Big</given></name>
+    <email>[email protected]</email>
+    <link subordinates="one.worker two.worker three.worker four.worker 
five.worker"></link>
+  </person>
+
+  <person id="one.worker">
+    <name><family>Worker</family> <given>One</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="two.worker">
+    <name><family>Worker</family> <given>Two</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="three.worker">
+    <name><family>Worker</family> <given>Three</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="four.worker">
+    <name><family>Worker</family> <given>Four</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+  <person id="five.worker">
+    <name><family>Worker</family> <given>Five</given></name>
+    <email>[email protected]</email>
+    <link manager="Big.Boss"></link>
+  </person>
+
+</personnel>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to