summaryrefslogtreecommitdiff
path: root/ACEXML/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ACEXML/examples')
-rw-r--r--ACEXML/examples/Makefile17
-rw-r--r--ACEXML/examples/Makefile.bor9
-rw-r--r--ACEXML/examples/SAXPrint/Makefile267
-rw-r--r--ACEXML/examples/SAXPrint/Makefile.bor25
-rw-r--r--ACEXML/examples/SAXPrint/Print_Handler.cpp256
-rw-r--r--ACEXML/examples/SAXPrint/Print_Handler.h187
-rw-r--r--ACEXML/examples/SAXPrint/Print_Handler.i1
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint.dsp130
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint.dsw29
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint.mpc2
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp243
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint_Handler.h195
-rw-r--r--ACEXML/examples/SAXPrint/SAXPrint_Handler.i13
-rw-r--r--ACEXML/examples/SAXPrint/broken.xml5
-rw-r--r--ACEXML/examples/SAXPrint/main.cpp142
-rw-r--r--ACEXML/examples/SAXPrint/ns.svc.conf.xml46
-rw-r--r--ACEXML/examples/SAXPrint/simple.svcconf.xml38
-rw-r--r--ACEXML/examples/SAXPrint/svc.conf.xml58
-rw-r--r--ACEXML/examples/svcconf/Makefile.bor24
-rw-r--r--ACEXML/examples/svcconf/README3
-rw-r--r--ACEXML/examples/svcconf/Svcconf.dsp110
-rw-r--r--ACEXML/examples/svcconf/Svcconf.dsw29
-rw-r--r--ACEXML/examples/svcconf/Svcconf_Handler.cpp486
-rw-r--r--ACEXML/examples/svcconf/Svcconf_Handler.h285
-rw-r--r--ACEXML/examples/svcconf/Svcconf_Handler.i133
-rw-r--r--ACEXML/examples/svcconf/main.cpp76
-rw-r--r--ACEXML/examples/test_docs/svcconf.dtd60
27 files changed, 0 insertions, 2869 deletions
diff --git a/ACEXML/examples/Makefile b/ACEXML/examples/Makefile
deleted file mode 100644
index a508ee1d096..00000000000
--- a/ACEXML/examples/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id$
-#
-# Makefile for the client programs that test the ACE network services
-#----------------------------------------------------------------------------
-
-DIRS = SAXPrint
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU
diff --git a/ACEXML/examples/Makefile.bor b/ACEXML/examples/Makefile.bor
deleted file mode 100644
index a2aa4f15bbb..00000000000
--- a/ACEXML/examples/Makefile.bor
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# Makefile for building the ACE XML examples
-#
-
-DIRS = \
- SAXPrint \
- svcconf
-
-!include <$(ACE_ROOT)\include\makeinclude\recurse.bor>
diff --git a/ACEXML/examples/SAXPrint/Makefile b/ACEXML/examples/SAXPrint/Makefile
deleted file mode 100644
index 728d6d7f1f5..00000000000
--- a/ACEXML/examples/SAXPrint/Makefile
+++ /dev/null
@@ -1,267 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id$
-#
-# Makefile for repeating token client application
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-LDLIBS = -lACEXML_Parser -lACEXML
-FILES = Print_Handler \
- SAXPrint_Handler
-
-SRC = $(addsuffix .cpp,$(FILES))
-OBJ = $(LSRC:%.cpp=$(VDIR)%.o)
-
-BIN = main
-
-BUILD = $(VBIN)
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-
-.obj/Print_Handler.o .obj/Print_Handler.so .shobj/Print_Handler.o .shobj/Print_Handler.so: Print_Handler.cpp Print_Handler.h \
- $(ACE_ROOT)/ACEXML/common/DefaultHandler.h \
- $(ACE_ROOT)/ace/pre.h \
- $(ACE_ROOT)/ACEXML/common/ACEXML_Export.h \
- $(ACE_ROOT)/ace/post.h \
- $(ACE_ROOT)/ace/ace_wchar.h \
- $(ACE_ROOT)/ace/ace_wchar.inl \
- $(ACE_ROOT)/ACEXML/common/ContentHandler.h \
- $(ACE_ROOT)/ACEXML/common/Env.h \
- $(ACE_ROOT)/ACEXML/common/XML_Macros.h \
- $(ACE_ROOT)/ace/Exception_Macros.h \
- $(ACE_ROOT)/ACEXML/common/Exception.h \
- $(ACE_ROOT)/ACEXML/common/XML_Types.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/OS_Dirent.h \
- $(ACE_ROOT)/ace/OS_Export.h \
- $(ACE_ROOT)/ace/OS_Errno.h \
- $(ACE_ROOT)/ace/OS_Errno.inl \
- $(ACE_ROOT)/ace/OS_Dirent.inl \
- $(ACE_ROOT)/ace/OS_String.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/ACE_export.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS_String.inl \
- $(ACE_ROOT)/ace/OS_Memory.h \
- $(ACE_ROOT)/ace/OS_Memory.inl \
- $(ACE_ROOT)/ace/OS_TLI.h \
- $(ACE_ROOT)/ace/OS_TLI.inl \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/Time_Value.inl \
- $(ACE_ROOT)/ace/Default_Constants.h \
- $(ACE_ROOT)/ace/Global_Macros.h \
- $(ACE_ROOT)/ace/Min_Max.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Trace.h $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/String_Base.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/Flag_Manip.h \
- $(ACE_ROOT)/ace/Flag_Manip.i \
- $(ACE_ROOT)/ace/Handle_Ops.h \
- $(ACE_ROOT)/ace/Handle_Ops.i \
- $(ACE_ROOT)/ace/Lib_Find.h \
- $(ACE_ROOT)/ace/Lib_Find.i \
- $(ACE_ROOT)/ace/Init_ACE.h \
- $(ACE_ROOT)/ace/Init_ACE.i \
- $(ACE_ROOT)/ace/Sock_Connect.h \
- $(ACE_ROOT)/ace/Sock_Connect.i \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/String_Base_Const.h \
- $(ACE_ROOT)/ace/String_Base.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/String_Base.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.h \
- $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.inl \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread_Adapter.h \
- $(ACE_ROOT)/ace/Base_Thread_Adapter.h \
- $(ACE_ROOT)/ace/Base_Thread_Adapter.inl \
- $(ACE_ROOT)/ace/Thread_Adapter.inl \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Malloc_Allocator.h \
- $(ACE_ROOT)/ace/Malloc_Allocator.i \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Unbounded_Set.h \
- $(ACE_ROOT)/ace/Node.h $(ACE_ROOT)/ace/Node.cpp \
- $(ACE_ROOT)/ace/Unbounded_Set.inl \
- $(ACE_ROOT)/ace/Unbounded_Set.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Auto_Ptr.h \
- $(ACE_ROOT)/ace/Auto_Ptr.i \
- $(ACE_ROOT)/ace/Auto_Ptr.cpp \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ACEXML/common/Exception.i \
- $(ACE_ROOT)/ACEXML/common/Env.i \
- $(ACE_ROOT)/ACEXML/common/SAXExceptions.h \
- $(ACE_ROOT)/ACEXML/common/SAXExceptions.i \
- $(ACE_ROOT)/ACEXML/common/Locator.h \
- $(ACE_ROOT)/ACEXML/common/Attributes.h \
- $(ACE_ROOT)/ACEXML/common/DTDHandler.h \
- $(ACE_ROOT)/ACEXML/common/EntityResolver.h \
- $(ACE_ROOT)/ACEXML/common/InputSource.h \
- $(ACE_ROOT)/ACEXML/common/CharStream.h \
- $(ACE_ROOT)/ACEXML/common/ErrorHandler.h \
- $(ACE_ROOT)/ACEXML/common/DefaultHandler.i
-
-.obj/SAXPrint_Handler.o .obj/SAXPrint_Handler.so .shobj/SAXPrint_Handler.o .shobj/SAXPrint_Handler.so: SAXPrint_Handler.cpp SAXPrint_Handler.h \
- $(ACE_ROOT)/ACEXML/common/DefaultHandler.h \
- $(ACE_ROOT)/ace/pre.h \
- $(ACE_ROOT)/ACEXML/common/ACEXML_Export.h \
- $(ACE_ROOT)/ace/post.h \
- $(ACE_ROOT)/ace/ace_wchar.h \
- $(ACE_ROOT)/ace/ace_wchar.inl \
- $(ACE_ROOT)/ACEXML/common/ContentHandler.h \
- $(ACE_ROOT)/ACEXML/common/Env.h \
- $(ACE_ROOT)/ACEXML/common/XML_Macros.h \
- $(ACE_ROOT)/ace/Exception_Macros.h \
- $(ACE_ROOT)/ACEXML/common/Exception.h \
- $(ACE_ROOT)/ACEXML/common/XML_Types.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/OS_Dirent.h \
- $(ACE_ROOT)/ace/OS_Export.h \
- $(ACE_ROOT)/ace/OS_Errno.h \
- $(ACE_ROOT)/ace/OS_Errno.inl \
- $(ACE_ROOT)/ace/OS_Dirent.inl \
- $(ACE_ROOT)/ace/OS_String.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/ACE_export.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS_String.inl \
- $(ACE_ROOT)/ace/OS_Memory.h \
- $(ACE_ROOT)/ace/OS_Memory.inl \
- $(ACE_ROOT)/ace/OS_TLI.h \
- $(ACE_ROOT)/ace/OS_TLI.inl \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/Time_Value.inl \
- $(ACE_ROOT)/ace/Default_Constants.h \
- $(ACE_ROOT)/ace/Global_Macros.h \
- $(ACE_ROOT)/ace/Min_Max.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Trace.h $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/String_Base.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/Flag_Manip.h \
- $(ACE_ROOT)/ace/Flag_Manip.i \
- $(ACE_ROOT)/ace/Handle_Ops.h \
- $(ACE_ROOT)/ace/Handle_Ops.i \
- $(ACE_ROOT)/ace/Lib_Find.h \
- $(ACE_ROOT)/ace/Lib_Find.i \
- $(ACE_ROOT)/ace/Init_ACE.h \
- $(ACE_ROOT)/ace/Init_ACE.i \
- $(ACE_ROOT)/ace/Sock_Connect.h \
- $(ACE_ROOT)/ace/Sock_Connect.i \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/String_Base_Const.h \
- $(ACE_ROOT)/ace/String_Base.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/String_Base.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.h \
- $(ACE_ROOT)/ace/OS_Log_Msg_Attributes.inl \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread_Adapter.h \
- $(ACE_ROOT)/ace/Base_Thread_Adapter.h \
- $(ACE_ROOT)/ace/Base_Thread_Adapter.inl \
- $(ACE_ROOT)/ace/Thread_Adapter.inl \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Malloc_Allocator.h \
- $(ACE_ROOT)/ace/Malloc_Allocator.i \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Unbounded_Set.h \
- $(ACE_ROOT)/ace/Node.h $(ACE_ROOT)/ace/Node.cpp \
- $(ACE_ROOT)/ace/Unbounded_Set.inl \
- $(ACE_ROOT)/ace/Unbounded_Set.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Auto_Ptr.h \
- $(ACE_ROOT)/ace/Auto_Ptr.i \
- $(ACE_ROOT)/ace/Auto_Ptr.cpp \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ACEXML/common/Exception.i \
- $(ACE_ROOT)/ACEXML/common/Env.i \
- $(ACE_ROOT)/ACEXML/common/SAXExceptions.h \
- $(ACE_ROOT)/ACEXML/common/SAXExceptions.i \
- $(ACE_ROOT)/ACEXML/common/Locator.h \
- $(ACE_ROOT)/ACEXML/common/Attributes.h \
- $(ACE_ROOT)/ACEXML/common/DTDHandler.h \
- $(ACE_ROOT)/ACEXML/common/EntityResolver.h \
- $(ACE_ROOT)/ACEXML/common/InputSource.h \
- $(ACE_ROOT)/ACEXML/common/CharStream.h \
- $(ACE_ROOT)/ACEXML/common/ErrorHandler.h \
- $(ACE_ROOT)/ACEXML/common/DefaultHandler.i \
- SAXPrint_Handler.i
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/ACEXML/examples/SAXPrint/Makefile.bor b/ACEXML/examples/SAXPrint/Makefile.bor
deleted file mode 100644
index 89c1f051772..00000000000
--- a/ACEXML/examples/SAXPrint/Makefile.bor
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# $Id$
-# Makefile for building the SAXPrint example
-#
-
-NAME = SAXPrint
-
-OBJFILES = \
- $(OBJDIR)\Print_Handler.obj \
- $(OBJDIR)\SAXPrint_Handler.obj \
- $(OBJDIR)\main.obj
-
-CFLAGS = \
- $(ACE_CFLAGS) \
- $(ACE_XML_CFLAGS) \
- $(ACE_XML_PARSER_CFLAGS)
-
-CPPDIR = .
-
-LIBFILES = \
- $(ACE_LIB) \
- $(ACE_XML_LIB) \
- $(ACE_XML_PARSER_LIB)
-
-!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor>
diff --git a/ACEXML/examples/SAXPrint/Print_Handler.cpp b/ACEXML/examples/SAXPrint/Print_Handler.cpp
deleted file mode 100644
index 19cfb44ba8d..00000000000
--- a/ACEXML/examples/SAXPrint/Print_Handler.cpp
+++ /dev/null
@@ -1,256 +0,0 @@
-// -*- C++ -*- $Id$
-
-#include "Print_Handler.h"
-#include "ace/ACE.h"
-#include "ace/Log_Msg.h"
-
-#if !defined (__ACEXML_INLINE__)
-# include "Print_Handler.i"
-#endif /* __ACEXML_INLINE__ */
-
-ACEXML_Print_Handler::ACEXML_Print_Handler (ACEXML_Char* fileName)
- : fileName_(ACE::strnew (fileName))
-{
-
-}
-
-ACEXML_Print_Handler::~ACEXML_Print_Handler (void)
-{
- delete[] this->fileName_;
-}
-
-void
-ACEXML_Print_Handler::characters (const ACEXML_Char *cdata,
- int start,
- int end ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event characters () ** start: %d end: %d ***************\n%s\n- End event characters () ---------------\n"),
- start, end, cdata));
-}
-
-void
-ACEXML_Print_Handler::endDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event endDocument () ***************\n")));
-}
-
-void
-ACEXML_Print_Handler::endElement (const ACEXML_Char *uri,
- const ACEXML_Char *name,
- const ACEXML_Char *qName
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event endElement (%s, %s, %s) ***************\n"),
- uri, name, qName));
-}
-
-void
-ACEXML_Print_Handler::endPrefixMapping (const ACEXML_Char *prefix
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event endPrefixMapping (%s) ***************\n"),
- prefix));
-}
-
-void
-ACEXML_Print_Handler::ignorableWhitespace (const ACEXML_Char *,
- int,
- int
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event ignorableWhitespace () ***************\n")));
-}
-
-void
-ACEXML_Print_Handler::processingInstruction (const ACEXML_Char *target,
- const ACEXML_Char *data
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event processingInstruction (%s, %s) ***************\n"),
- target, data));
-}
-
-void
-ACEXML_Print_Handler::setDocumentLocator (ACEXML_Locator * locator)
-{
-
- this->locator_ = locator;
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event setDocumentLocator () ***************\n")));
-}
-
-void
-ACEXML_Print_Handler::skippedEntity (const ACEXML_Char *name
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event skippedEntity (%s) ***************\n"),
- name));
-}
-
-void
-ACEXML_Print_Handler::startDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event startDocument () ***************\n")));
-}
-
-void
-ACEXML_Print_Handler::startElement (const ACEXML_Char *uri,
- const ACEXML_Char *name,
- const ACEXML_Char *qName,
- ACEXML_Attributes *alist
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event startElement (%s, %s, %s) ***************\n"),
- uri, name, qName));
-
- if (alist != 0)
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" %s = \"%s\"\n"),
- alist->getQName (i), alist->getValue (i)));
- }
-}
-
-void
-ACEXML_Print_Handler::startPrefixMapping (const ACEXML_Char * prefix,
- const ACEXML_Char * uri ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event startPrefixMapping () ***************\n")));
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Prefix = %s, URI = %s\n"), prefix, uri));
-}
-
-// *** Methods inherit from ACEXML_DTDHandler.
-
-void
-ACEXML_Print_Handler::notationDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicID,
- const ACEXML_Char *systemID ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event notationDecl: (%s) "),
- name));
-
- if (publicID == 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("SYSTEM %s\n"),
- systemID));
- else if (systemID == 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("PUBLIC %s\n"),
- publicID));
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("PUBLIC %s %s\n"),
- publicID, systemID));
-}
-
-void
-ACEXML_Print_Handler::unparsedEntityDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicID,
- const ACEXML_Char *systemID,
- const ACEXML_Char *notationName ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Unparsed Entity: %s"),
- name));
-
- if (publicID == 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" SYSTEM %s"),
- systemID));
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" PUBLIC %s %s"),
- publicID, systemID));
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" NDATA %s\n"),
- notationName));
-}
-
-// Methods inherit from ACEXML_EnitityResolver.
-
-ACEXML_InputSource *
-ACEXML_Print_Handler::resolveEntity (const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
- return 0;
-}
-
-// Methods inherit from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
-void
-ACEXML_Print_Handler::error (ACEXML_SAXParseException & ex ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
- ACE_DEBUG ((LM_DEBUG, "%s:%d:%d ", this->fileName_,
- this->locator_->getLineNumber(),
- this->locator_->getColumnNumber()));
- ex.print();
-}
-
-void
-ACEXML_Print_Handler::fatalError (ACEXML_SAXParseException& ex ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
- ACE_DEBUG ((LM_DEBUG, "%s:%d:%d ", this->fileName_,
- this->locator_->getLineNumber(),
- this->locator_->getColumnNumber()));
- ex.print();
-}
-
-void
-ACEXML_Print_Handler::warning (ACEXML_SAXParseException & ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
diff --git a/ACEXML/examples/SAXPrint/Print_Handler.h b/ACEXML/examples/SAXPrint/Print_Handler.h
deleted file mode 100644
index 3f28e6d9165..00000000000
--- a/ACEXML/examples/SAXPrint/Print_Handler.h
+++ /dev/null
@@ -1,187 +0,0 @@
-// $Id$
-
-//=============================================================================
-/**
- * @file Print_Handler.h
- *
- * $Id$
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-#ifndef ACEXML_PRINT_HANDLER_H
-#define ACEXML_PRINT_HANDLER_H
-
-#include "ACEXML/common/DefaultHandler.h"
-
-/**
- * @class ACEXML_Print_Handler
- *
- * @brief ACEXML_Print_Handler is an example SAX event handler.
- *
- * This SAX event handler prints out a detailed event report
- * on every event it receives.
- */
-class ACEXML_Print_Handler : public ACEXML_DefaultHandler
-{
-public:
- /*
- * Default constructor.
- */
- ACEXML_Print_Handler (ACEXML_Char* fileName);
-
- /*
- * Default destructor.
- */
- virtual ~ACEXML_Print_Handler (void);
-
- // Methods inherited from ACEXML_ContentHandler.
-
- /*
- * Receive notification of character data.
- */
- virtual void characters (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of a document.
- */
- virtual void endDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of an element.
- */
- virtual void endElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * End the scope of a prefix-URI mapping.
- */
- virtual void endPrefixMapping (const ACEXML_Char *prefix ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of ignorable whitespace in element content.
- */
- virtual void ignorableWhitespace (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a processing instruction.
- */
- virtual void processingInstruction (const ACEXML_Char *target,
- const ACEXML_Char *data ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive an object for locating the origin of SAX document events.
- */
- virtual void setDocumentLocator (ACEXML_Locator *locator) ;
-
- /*
- * Receive notification of a skipped entity.
- */
- virtual void skippedEntity (const ACEXML_Char *name ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of a document.
- */
- virtual void startDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of an element.
- */
- virtual void startElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName,
- ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Begin the scope of a prefix-URI Namespace mapping.
- */
- virtual void startPrefixMapping (const ACEXML_Char *prefix,
- const ACEXML_Char *uri ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // *** Methods inherit from ACEXML_DTDHandler.
-
- /*
- * Receive notification of a notation declaration event.
- */
- virtual void notationDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of an unparsed entity declaration event.
- */
- virtual void unparsedEntityDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId,
- const ACEXML_Char *notationName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_EnitityResolver.
-
- /*
- * Allow the application to resolve external entities.
- */
- virtual ACEXML_InputSource *resolveEntity (const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
- virtual void error (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a non-recoverable error.
- */
- virtual void fatalError (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a warning.
- */
- virtual void warning (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-private:
-
- ACEXML_Char* fileName_;
- ACEXML_Locator* locator_;
-
-};
-
-#endif /* ACEXML_PRINT_HANDLER_H */
diff --git a/ACEXML/examples/SAXPrint/Print_Handler.i b/ACEXML/examples/SAXPrint/Print_Handler.i
deleted file mode 100644
index 77b4466a3cb..00000000000
--- a/ACEXML/examples/SAXPrint/Print_Handler.i
+++ /dev/null
@@ -1 +0,0 @@
-// -*- C++ -*- $Id$
diff --git a/ACEXML/examples/SAXPrint/SAXPrint.dsp b/ACEXML/examples/SAXPrint/SAXPrint.dsp
deleted file mode 100644
index 2d9a6cc4a98..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint.dsp
+++ /dev/null
@@ -1,130 +0,0 @@
-# Microsoft Developer Studio Project File - Name="SAXPrint" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=SAXPrint - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "SAXPrint.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "SAXPrint.mak" CFG="SAXPrint - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "SAXPrint - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "SAXPrint - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "SAXPrint - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "../../.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib ACEXML.lib ACEXML_Parser.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\Common" /libpath:"..\..\parser\parser"
-
-!ELSEIF "$(CFG)" == "SAXPrint - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib ACEXMLd.lib ACEXML_Parserd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\Common" /libpath:"..\..\parser\parser"
-
-!ENDIF
-
-# Begin Target
-
-# Name "SAXPrint - Win32 Release"
-# Name "SAXPrint - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\main.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Print_Handler.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\SAXPrint_Handler.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\Print_Handler.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\SAXPrint_Handler.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Group "Inline Files"
-
-# PROP Default_Filter "i"
-# Begin Source File
-
-SOURCE=.\Print_Handler.i
-# End Source File
-# Begin Source File
-
-SOURCE=.\SAXPrint_Handler.i
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/ACEXML/examples/SAXPrint/SAXPrint.dsw b/ACEXML/examples/SAXPrint/SAXPrint.dsw
deleted file mode 100644
index 3ec5cb65624..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "SAXPrint"=.\SAXPrint.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/ACEXML/examples/SAXPrint/SAXPrint.mpc b/ACEXML/examples/SAXPrint/SAXPrint.mpc
deleted file mode 100644
index fb64bc80fcd..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint.mpc
+++ /dev/null
@@ -1,2 +0,0 @@
-project(SAXPrint): aceexe, acexml {
-}
diff --git a/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp b/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp
deleted file mode 100644
index 66d96dca47b..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp
+++ /dev/null
@@ -1,243 +0,0 @@
-// -*- C++ -*- $Id$
-
-#include "SAXPrint_Handler.h"
-#include "ace/ACE.h"
-#include "ace/Log_Msg.h"
-
-#if !defined (__ACEXML_INLINE__)
-# include "SAXPrint_Handler.i"
-#endif /* __ACEXML_INLINE__ */
-
-ACEXML_SAXPrint_Handler::ACEXML_SAXPrint_Handler (const ACEXML_Char* filename)
- : indent_ (0), fileName_(ACE::strnew (filename)), locator_ (0)
-{
- // no-op
-}
-
-ACEXML_SAXPrint_Handler::~ACEXML_SAXPrint_Handler (void)
-{
- delete [] this->fileName_;
-}
-
-void
-ACEXML_SAXPrint_Handler::characters (const ACEXML_Char *cdata,
- int start,
- int end ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
- ACE_UNUSED_ARG (start);
- ACE_UNUSED_ARG (end);
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("%s"),
- cdata));
-}
-
-void
-ACEXML_SAXPrint_Handler::endDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n")));
-}
-
-void
-ACEXML_SAXPrint_Handler::endElement (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *qName
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- this->dec_indent ();
- this->print_indent ();
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("</%s>"),
- qName));
-}
-
-void
-ACEXML_SAXPrint_Handler::endPrefixMapping (const ACEXML_Char *prefix
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event endPrefixMapping (%s) ***************\n"),
- prefix));
-}
-
-void
-ACEXML_SAXPrint_Handler::ignorableWhitespace (const ACEXML_Char *,
- int,
- int ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event ignorableWhitespace () ***************\n")));
-}
-
-void
-ACEXML_SAXPrint_Handler::processingInstruction (const ACEXML_Char *target,
- const ACEXML_Char *data
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- this->print_indent ();
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("<?%s %s>\n"),
- target, data));
-}
-
-void
-ACEXML_SAXPrint_Handler::setDocumentLocator (ACEXML_Locator * locator)
-{
-
- this->locator_ = locator;
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event setDocumentLocator () ***************\n")));
-}
-
-void
-ACEXML_SAXPrint_Handler::skippedEntity (const ACEXML_Char *name
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event skippedEntity (%s) ***************\n"),
- name));
-}
-
-void
-ACEXML_SAXPrint_Handler::startDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event startDocument () ***************\n")));
-}
-
-void
-ACEXML_SAXPrint_Handler::startElement (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *qName,
- ACEXML_Attributes *alist
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- this->print_indent ();
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("<%s"),
- qName));
- if (alist != 0)
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" %s = \"%s\""),
- alist->getQName (i), alist->getValue (i)));
- }
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (">")));
- this->inc_indent ();
-}
-
-void
-ACEXML_SAXPrint_Handler::startPrefixMapping (const ACEXML_Char * prefix,
- const ACEXML_Char * uri ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("* Event startPrefixMapping () ***************\n")));
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Prefix = %s, URI = %s\n"), prefix, uri));
-
-}
-
-// *** Methods inherited from ACEXML_DTDHandler.
-
-void
-ACEXML_SAXPrint_Handler::notationDecl (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-void
-ACEXML_SAXPrint_Handler::unparsedEntityDecl (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-// Methods inherited from ACEXML_EnitityResolver.
-
-ACEXML_InputSource *
-ACEXML_SAXPrint_Handler::resolveEntity (const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
- return 0;
-}
-
-// Methods inherited from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
-void
-ACEXML_SAXPrint_Handler::error (ACEXML_SAXParseException & ex
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG, "%s: line :%d col: %d ", this->fileName_,
- this->locator_->getLineNumber(),
- this->locator_->getColumnNumber()));
- ex.print();
-}
-
-void
-ACEXML_SAXPrint_Handler::fatalError (ACEXML_SAXParseException & ex
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG, "%s: line :%d col: %d ", this->fileName_,
- this->locator_->getLineNumber(),
- this->locator_->getColumnNumber()));
- ex.print();
-}
-
-void
-ACEXML_SAXPrint_Handler::warning (ACEXML_SAXParseException & ex
- ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- ACE_DEBUG ((LM_DEBUG, "%s: line :%d col: %d ", this->fileName_,
- this->locator_->getLineNumber(),
- this->locator_->getColumnNumber()));
- ex.print();
-}
-
-void
-ACEXML_SAXPrint_Handler::print_indent (void)
-{
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n")));
- for (size_t i = 0; i < this->indent_; ++i)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" ")));
-}
diff --git a/ACEXML/examples/SAXPrint/SAXPrint_Handler.h b/ACEXML/examples/SAXPrint/SAXPrint_Handler.h
deleted file mode 100644
index 612dd406c06..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint_Handler.h
+++ /dev/null
@@ -1,195 +0,0 @@
-// $Id$
-
-//=============================================================================
-/**
- * @file SAXPrint_Handler.h
- *
- * $Id$
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-#ifndef ACEXML_SAXPRINT_HANDLER_H
-#define ACEXML_SAXPRINT_HANDLER_H
-
-#include "ACEXML/common/DefaultHandler.h"
-
-/**
- * @class ACEXML_SAXPrint_Handler
- *
- * @brief ACEXML_SAXPrint_Handler is an example SAX event handler.
- *
- * This SAX event handler try to regenerate the XML document it
- * reads with correct indentation.
- */
-class ACEXML_SAXPrint_Handler : public ACEXML_DefaultHandler
-{
-public:
- /*
- * Default constructor.
- */
- ACEXML_SAXPrint_Handler (const ACEXML_Char* name);
-
- /*
- * Default destructor.
- */
- virtual ~ACEXML_SAXPrint_Handler (void);
-
- // Methods inherit from ACEXML_ContentHandler.
-
- /*
- * Receive notification of character data.
- */
- virtual void characters (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of a document.
- */
- virtual void endDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of an element.
- */
- virtual void endElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * End the scope of a prefix-URI mapping.
- */
- virtual void endPrefixMapping (const ACEXML_Char *prefix ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of ignorable whitespace in element content.
- */
- virtual void ignorableWhitespace (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a processing instruction.
- */
- virtual void processingInstruction (const ACEXML_Char *target,
- const ACEXML_Char *data ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive an object for locating the origin of SAX document events.
- */
- virtual void setDocumentLocator (ACEXML_Locator *locator) ;
-
- /*
- * Receive notification of a skipped entity.
- */
- virtual void skippedEntity (const ACEXML_Char *name ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of a document.
- */
- virtual void startDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of an element.
- */
- virtual void startElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName,
- ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Begin the scope of a prefix-URI Namespace mapping.
- */
- virtual void startPrefixMapping (const ACEXML_Char *prefix,
- const ACEXML_Char *uri ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // *** Methods inherit from ACEXML_DTDHandler.
-
- /*
- * Receive notification of a notation declaration event.
- */
- virtual void notationDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of an unparsed entity declaration event.
- */
- virtual void unparsedEntityDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId,
- const ACEXML_Char *notationName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_EnitityResolver.
-
- /*
- * Allow the application to resolve external entities.
- */
- virtual ACEXML_InputSource *resolveEntity (const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
- virtual void error (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a non-recoverable error.
- */
- virtual void fatalError (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a warning.
- */
- virtual void warning (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- void inc_indent ();
- void dec_indent ();
- void print_indent ();
-
-private:
-
- size_t indent_;
- ACEXML_Char* fileName_;
- ACEXML_Locator* locator_;
-};
-
-#if defined (__ACEXML_INLINE__)
-# include "SAXPrint_Handler.i"
-#endif /* __ACEXML_INLINE__ */
-#endif /* ACEXML_SAXPRINT_HANDLER_H */
diff --git a/ACEXML/examples/SAXPrint/SAXPrint_Handler.i b/ACEXML/examples/SAXPrint/SAXPrint_Handler.i
deleted file mode 100644
index 2102291ea68..00000000000
--- a/ACEXML/examples/SAXPrint/SAXPrint_Handler.i
+++ /dev/null
@@ -1,13 +0,0 @@
-// -*- C++ -*- $Id$
-
-ACEXML_INLINE void
-ACEXML_SAXPrint_Handler::inc_indent (void)
-{
- this->indent_ += 1;
-}
-
-ACEXML_INLINE void
-ACEXML_SAXPrint_Handler::dec_indent (void)
-{
- this->indent_ -= 1;
-}
diff --git a/ACEXML/examples/SAXPrint/broken.xml b/ACEXML/examples/SAXPrint/broken.xml
deleted file mode 100644
index fc8432680e8..00000000000
--- a/ACEXML/examples/SAXPrint/broken.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<!-- This is a broken XML file. Most of the stuff here don't make any sense at all -->
-
-<root>
- <child> kid </child> \ No newline at end of file
diff --git a/ACEXML/examples/SAXPrint/main.cpp b/ACEXML/examples/SAXPrint/main.cpp
deleted file mode 100644
index 64ce0125fe4..00000000000
--- a/ACEXML/examples/SAXPrint/main.cpp
+++ /dev/null
@@ -1,142 +0,0 @@
-// $Id$
-
-#include "ACEXML/common/FileCharStream.h"
-#include "ACEXML/common/HttpCharStream.h"
-#include "ACEXML/common/StrCharStream.h"
-#include "ACEXML/parser/parser/Parser.h"
-#include "Print_Handler.h"
-#include "SAXPrint_Handler.h"
-#include "ace/Get_Opt.h"
-#include "ace/Auto_Ptr.h"
-
-static const ACEXML_Char *test_string =
-ACE_TEXT ("<?xml version='1.0'?> <ACE_Svc_Conf> <static id=\"ACE_Service_Manager\" params='-d -p 4911'/> <dynamic id=\"Test_Task\" type=\"service_object\"> &#65; &amp; <initializer path=\"CCM_App\" init='_make_Test_Task' params='-p 3000'/> </dynamic> </ACE_Svc_Conf>");
-
-static void
-usage (const ACE_TCHAR* program)
-{
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Usage: %s [-sl] [-f <filename> | -u <url>]\n")
- ACE_TEXT (" -s: Use SAXPrint_Handler (Default is Print_Handler)\n")
- ACE_TEXT (" -l: Parse the internal strings (test the StrCharStream class)\n")
- ACE_TEXT (" -f: Specify the filename when -l is not specified\n")
- ACE_TEXT (" -n: Use the \"Simple\" parsing feature\n")
- ACE_TEXT (" -u: URL specifying the path to the file\n"),
- program));
-}
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- ACEXML_Char* filename = 0;
- int sax = 0; // Use SAXPrint handler or not.
- int str = 0;
- int simple = 0;
- ACEXML_Char* url = 0;
-
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("snf:lu:"));
- int c;
-
- while ((c = get_opt ()) != EOF)
- {
- switch (c)
- {
- case 's':
- sax = 1;
- break;
- case 'l':
- str = 1;
- break;
- case 'f':
- filename = get_opt.opt_arg ();
- break;
- case 'n':
- simple = 1;
- break;
- case 'u':
- url = get_opt.opt_arg();
- break;
- default:
- usage(argv[0]);
- return -1;
- }
- }
-
- if (str == 0 && filename == 0 && url == 0) {
- usage(argv[0]);
- return -1;
- }
-
- ACEXML_DefaultHandler *handler = 0;
- auto_ptr<ACEXML_DefaultHandler> cleanup_handler (handler);
- ACEXML_CharStream *stm = 0;
- ACEXML_FileCharStream *fstm = 0;
- ACEXML_HttpCharStream *ustm = 0;
- if (filename != 0)
- {
- ACE_NEW_RETURN (fstm,
- ACEXML_FileCharStream (),
- -1);
-
- if (fstm->open (filename) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("Failed to open XML file: %s\n"),
- filename),
- -1);
- stm = fstm;
- }
- else if (url != 0)
- {
-
- ACE_NEW_RETURN (ustm,
- ACEXML_HttpCharStream (),
- -1);
- if (ustm->open (url) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("Failed to open URL : %s\n"),
- url),
- -1);
- stm = ustm;
- }
- else {
- ACE_NEW_RETURN (stm,
- ACEXML_StrCharStream (test_string),
- -1);
- }
-
- ACEXML_Char* name = (filename == 0) ? url : filename;
- if (sax == 0)
- ACE_NEW_RETURN (handler,
- ACEXML_Print_Handler (name),
- -1);
- else
- ACE_NEW_RETURN (handler,
- ACEXML_SAXPrint_Handler (name),
- -1);
-
- ACEXML_TRY_NEW_ENV
- {
- ACEXML_Parser parser;
- if (simple != 0)
- {
- parser.setFeature (ACE_TEXT ("Simple"), 1 ACEXML_ENV_ARG_PARAMETER);
- ACEXML_TRY_CHECK;
- }
- ACEXML_InputSource input(stm);
-
- parser.setContentHandler (handler);
- parser.setDTDHandler (handler);
- parser.setErrorHandler (handler);
- parser.setEntityResolver (handler);
-
- parser.parse (&input ACEXML_ENV_ARG_PARAMETER);
- ACEXML_TRY_CHECK;
- }
- ACEXML_CATCH (ACEXML_SAXException, ex)
- {
- ACE_UNUSED_ARG (ex);
- ACE_DEBUG ((LM_ERROR, ACE_TEXT ("Exception occurred. Exiting...\n")));
- }
- ACEXML_ENDTRY;
- return 0;
-}
diff --git a/ACEXML/examples/SAXPrint/ns.svc.conf.xml b/ACEXML/examples/SAXPrint/ns.svc.conf.xml
deleted file mode 100644
index db1821d7ac0..00000000000
--- a/ACEXML/examples/SAXPrint/ns.svc.conf.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<ace:ACE_Svc_Conf xmlns="http://ace.doc.wustl.edu/svcconf" xmlns:ace="http://ace.doc.wustl.edu/svcconf">
-<static id="ACE_Service_Manager">
- <params>-d</params>
- <params>-p 4911</params>
-</static>
-
-<dynamic id="Test_Task" type="service_object"> &#65; &amp;
- <initializer path="CCM_App" init="_make_Test_Task">
- <params>-p 3000</params>
- </initializer>
-</dynamic>
-
-<ace:streamdef>
- <dynamic id="CCM_App" type="stream" status="active">
- <initializer path="CCM_App" init="make_stream"/>
- </dynamic>
- <module>
- <dynamic id="Device_Adapter" type="module">
- <initializer path="CCM_App" init="make_da"/>
- </dynamic>
- <dynamic id="Event_Analyzer" type="module">
- <initializer path="CCM_App" init="make_ea"/>
- </dynamic>
- <dynamic id="Multicast_Router" type="module">
- <initializer path="CCM_App" init="make_mr">
- <params>-p</params>
- <params>3001</params>
- </initializer>
- </dynamic>
- </module>
-</ace:streamdef>
-
-<stream id="CCM_App">
- <module>
- <remove id="Device_Adapter"/>
- <!-- <remove id="Event_Analyzer"/> -->
- <!-- <remove id="Multicast_Router"/> -->
- <![CDATA[Only a text string.
-Do you &amp;expect something more?]]>
- </module>
-</stream>
-
-<!-- remove CCM_App -->
-<remove id="Test_&amp;Task&#x65;bc"/>
-</ace:ACE_Svc_Conf>
diff --git a/ACEXML/examples/SAXPrint/simple.svcconf.xml b/ACEXML/examples/SAXPrint/simple.svcconf.xml
deleted file mode 100644
index 32afe359fdb..00000000000
--- a/ACEXML/examples/SAXPrint/simple.svcconf.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<ACE_Svc_Conf>
-<static id="ACE_Service_Manager" params="-d -p 4911"/>
-
-<dynamic id="Test_Task" type="service_object"> &#65; &amp;
- <initializer path="CCM_App" init="_make_Test_Task" params="-p 3000" />
-</dynamic>
-
-<streamdef>
- <dynamic id="CCM_App" type="stream" status="active">
- <initializer path="CCM_App" init="make_stream"/>
- </dynamic>
- <module>
- <dynamic id="Device_Adapter" type="module">
- <initializer path="CCM_App" init="make_da"/>
- </dynamic>
- <dynamic id="Event_Analyzer" type="module">
- <initializer path="CCM_App" init="make_ea"/>
- </dynamic>
- <dynamic id="Multicast_Router" type="module">
- <initializer path="CCM_App" init="make_mr" params="-p 3001"/>
- </dynamic>
- </module>
-</streamdef>
-
-<stream id="&ccm;">
- <module>
- <remove id="Device_Adapter"/>
- <!-- <remove id="Event_Analyzer"/> -->
- <!-- <remove id="Multicast_Router"/> -->
- <![CDATA[Only a text string.
-Do you &amp;expect something more? &#65;]]>
-<!-- Noticed that the "&amp;" in the above CDATA section can not be escaped. -->
- </module>
-</stream>
-
-<!-- remove CCM_App -->
-<remove id="Test_&amp;Task&#x61;bc"/>
-</ACE_Svc_Conf>
diff --git a/ACEXML/examples/SAXPrint/svc.conf.xml b/ACEXML/examples/SAXPrint/svc.conf.xml
deleted file mode 100644
index 152f3b44406..00000000000
--- a/ACEXML/examples/SAXPrint/svc.conf.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0"?>
-<!-- This is a test XML file. Most of the stuff here don't make any sense at all -->
-<!DOCTYPE ACE_Svc_Conf PUBLIC 'GOODSAM' 'http://ace.cs.wustl.edu/dtd/ACE_SVCCONF.DTD'
- [
- <!NOTATION goody PUBLIC 'NBC' 'http://hardcoreace.com/'>
- <!NOTATION frodo PUBLIC 'ABC'>
- <!NOTATION bilbo SYSTEM "C:/ACE-GUIDELINE">
- <!ENTITY ccm 'CCM_App'>
- <!ENTITY pippin PUBLIC 'GOTO' 'http://taozen.com/' NDATA NBC>
- <!ENTITY sam PUBLIC 'SHIRE' 'http://taozen.com/'>
- <!ENTITY gandolf SYSTEM 'D:/RINGS.DOT'>
- <!ELEMENT GOOBEGONE EMPTY>
- <!ELEMENT POOPOO ANY>
- <!ELEMENT HOHOHO ((BOOBOO, GOOBEGONE)?, (GOOBEGONE|POOPOO)*)+>
- <!ELEMENT BOOBOO (#PCDATA | BOOBOO)*>
- <!ATTLIST GOOBEGONE
- ohmy CDATA #REQUIRED
- testing IDREF #IMPLIED>
- ]>
-
-<ACE_Svc_Conf>
-<static id="ACE_Service_Manager" params="-d -p 4911"/>
-
-<dynamic id="Test_Task" type="service_object"> &#65; &amp;
- <initializer path="CCM_App" init="_make_Test_Task" params="-p 3000" />
-</dynamic>
-
-<streamdef>
- <dynamic id="CCM_App" type="stream" status="active">
- <initializer path="CCM_App" init="make_stream"/>
- </dynamic>
- <module>
- <dynamic id="Device_Adapter" type="module">
- <initializer path="CCM_App" init="make_da"/>
- </dynamic>
- <dynamic id="Event_Analyzer" type="module">
- <initializer path="CCM_App" init="make_ea"/>
- </dynamic>
- <dynamic id="Multicast_Router" type="module">
- <initializer path="CCM_App" init="make_mr" params="-p 3001"/>
- </dynamic>
- </module>
-</streamdef>
-
-<stream id="&ccm;">
- <module>
- <remove id="Device_Adapter"/>
- <!-- <remove id="Event_Analyzer"/> -->
- <!-- <remove id="Multicast_Router"/> -->
- <![CDATA[Only a text string.
-Do you &amp;expect something more? &#65;]]>
-<!-- Noticed that the "&amp;" in the above CDATA section can not be escaped. -->
- </module>
-</stream>
-
-<!-- remove CCM_App -->
-<remove id="Test_&amp;Task&#x61;bc"/>
-</ACE_Svc_Conf>
diff --git a/ACEXML/examples/svcconf/Makefile.bor b/ACEXML/examples/svcconf/Makefile.bor
deleted file mode 100644
index 91b14f910cb..00000000000
--- a/ACEXML/examples/svcconf/Makefile.bor
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# $Id$
-# Makefile for building the svcconf example
-#
-
-NAME = Svcconf
-
-OBJFILES = \
- $(OBJDIR)\Svcconf_Handler.obj \
- $(OBJDIR)\main.obj
-
-CFLAGS = \
- $(ACE_CFLAGS) \
- $(ACE_XML_CFLAGS) \
- $(ACE_XML_PARSER_CFLAGS)
-
-CPPDIR = .
-
-LIBFILES = \
- $(ACE_LIB) \
- $(ACE_XML_LIB) \
- $(ACE_XML_PARSER_LIB)
-
-!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor>
diff --git a/ACEXML/examples/svcconf/README b/ACEXML/examples/svcconf/README
deleted file mode 100644
index 7463c7e9572..00000000000
--- a/ACEXML/examples/svcconf/README
+++ /dev/null
@@ -1,3 +0,0 @@
-$Id$
-
-A test workspace for svc.conf handler. \ No newline at end of file
diff --git a/ACEXML/examples/svcconf/Svcconf.dsp b/ACEXML/examples/svcconf/Svcconf.dsp
deleted file mode 100644
index 15911671e1c..00000000000
--- a/ACEXML/examples/svcconf/Svcconf.dsp
+++ /dev/null
@@ -1,110 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Svcconf" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Svcconf - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Svcconf.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Svcconf.mak" CFG="Svcconf - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Svcconf - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Svcconf - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Svcconf - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib ACEXML.lib ACEXML_Parser.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace" /libpath:"..\..\Common" /libpath:"..\..\parser\parser"
-
-!ELSEIF "$(CFG)" == "Svcconf - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib ACEXMLd.lib ACEXML_Parserd.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace" /libpath:"..\..\Common" /libpath:"..\..\parser\parser"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Svcconf - Win32 Release"
-# Name "Svcconf - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\main.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Svcconf_Handler.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\Svcconf_Handler.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/ACEXML/examples/svcconf/Svcconf.dsw b/ACEXML/examples/svcconf/Svcconf.dsw
deleted file mode 100644
index f25a54a4e72..00000000000
--- a/ACEXML/examples/svcconf/Svcconf.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Svcconf"=.\Svcconf.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/ACEXML/examples/svcconf/Svcconf_Handler.cpp b/ACEXML/examples/svcconf/Svcconf_Handler.cpp
deleted file mode 100644
index f2bc70292cf..00000000000
--- a/ACEXML/examples/svcconf/Svcconf_Handler.cpp
+++ /dev/null
@@ -1,486 +0,0 @@
-// -*- C++ -*- $Id$
-
-#include "Svcconf_Handler.h"
-#include "ace/ACE.h"
-#include "ace/Log_Msg.h"
-
-#if !defined (__ACEXML_INLINE__)
-# include "Svcconf_Handler.i"
-#endif /* __ACEXML_INLINE__ */
-
-ACEXML_Svcconf_Handler::ACEXML_Svcconf_Handler (void)
- : in_stream_def_ (0),
- in_module_ (0)
-{
- // no-op
-}
-
-ACEXML_Svcconf_Handler::~ACEXML_Svcconf_Handler (void)
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::characters (const ACEXML_Char *,
- int,
- int ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::endDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::endElement (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *qName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
-
-
- if (ACE_OS_String::strcmp (qName, ACE_TEXT ("dynamic")) == 0)
- {
- if (this->in_stream_def_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Create dynamic %s for stream\n"),
- this->stream_info_.name ()));
- }
- else
- {
- if (this->in_module_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Push dynamic %s into stream %s\n"),
- this->parsed_info_.name (),
- this->stream_info_.name ()));
- }
- else
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Apply dynamic %s\n"),
- this->parsed_info_.name ()));
- }
- this->parsed_info_.reset ();
- }
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("static")) == 0)
- {
- if (this->in_stream_def_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Create sttaic %s for stream\n"),
- this->stream_info_.name ()));
- }
- else
- {
- if (this->in_module_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Push static %s into stream %s\n"),
- this->parsed_info_.name (),
- this->stream_info_.name ()));
- }
- else
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Apply static %s\n"),
- this->parsed_info_.name ()));
- }
- this->parsed_info_.reset ();
- }
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("module")) == 0)
- {
- this->in_module_ = 0;
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("streamdef")) == 0 ||
- ACE_OS_String::strcmp (qName, ACE_TEXT ("stream")) == 0)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Apply stream %s of type %s\n"),
- this->stream_info_.name (),
- this->stream_info_.name ()));
- this->stream_info_.reset ();
- }
- else
- {
- }
-}
-
-void
-ACEXML_Svcconf_Handler::endPrefixMapping (const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::ignorableWhitespace (const ACEXML_Char *,
- int,
- int ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::processingInstruction (const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::setDocumentLocator (ACEXML_Locator* )
-{
-}
-
-void
-ACEXML_Svcconf_Handler::skippedEntity (const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::startDocument (ACEXML_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // no-op
-}
-
-void
-ACEXML_Svcconf_Handler::startElement (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *qName,
- ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- if (ACE_OS_String::strcmp (qName, ACE_TEXT ("dynamic")) == 0)
- {
- this->get_dynamic_attrs (alist ACEXML_ENV_ARG_PARAMETER);
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("initializer")) == 0)
- {
- this->get_initializer_attrs (alist ACEXML_ENV_ARG_PARAMETER);
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("static")) == 0)
- {
- this->get_static_attrs (alist ACEXML_ENV_ARG_PARAMETER);
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("stream")) == 0)
- {
- this->get_stream_id (alist ACEXML_ENV_ARG_PARAMETER);
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Retrieve stream %s from repository\n"),
- this->stream_info_.name ()));
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("streamdef")) == 0)
- {
- this->in_stream_def_ = 1;
- // @@ Set up stream service object
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("module")) == 0)
- {
- this->in_stream_def_ = 0;
- this->in_module_ = 1;
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("resume")) == 0)
- {
- this->get_id (alist ACEXML_ENV_ARG_PARAMETER);
- if (this->in_module_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Resume %s in stream %s\n"),
- this->parsed_info_.name (),
- this->stream_info_.name ()));
- }
- else
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Resume %s\n"),
- this->parsed_info_.name ()));
- }
- this->parsed_info_.reset ();
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("suspend")) == 0)
- {
- this->get_id (alist ACEXML_ENV_ARG_PARAMETER);
- if (this->in_module_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Suspend %s in stream %s\n"),
- this->parsed_info_.name (),
- this->stream_info_.name ()));
- }
- else
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Suspend %s\n"),
- this->parsed_info_.name ()));
- }
- this->parsed_info_.reset ();
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("remove")) == 0)
- {
- this->get_id (alist ACEXML_ENV_ARG_PARAMETER);
- if (this->in_module_)
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Remove %s in stream %s\n"),
- this->parsed_info_.name (),
- this->stream_info_.name ()));
- }
- else
- {
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("Remove %s\n"),
- this->parsed_info_.name ()));
- }
- this->parsed_info_.reset ();
- }
- else if (ACE_OS_String::strcmp (qName, ACE_TEXT ("ACE_Svc_Conf")) == 0)
- {
- // Main document tag. no-op.
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("ACE_Svc_Conf tag\n")));
- }
- else
- {
- // @@ Error. Perhaps we should relay to user event handler here, if available.
- }
-
- return;
-
- if (alist != 0)
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" %s = \"%s\""),
- alist->getQName (i), alist->getValue (i)));
- }
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (">")));
-}
-
-void
-ACEXML_Svcconf_Handler::startPrefixMapping (const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-// *** Methods inherit from ACEXML_DTDHandler.
-
-void
-ACEXML_Svcconf_Handler::notationDecl (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-void
-ACEXML_Svcconf_Handler::unparsedEntityDecl (const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-// Methods inherit from ACEXML_EnitityResolver.
-
-ACEXML_InputSource *
-ACEXML_Svcconf_Handler::resolveEntity (const ACEXML_Char *,
- const ACEXML_Char * ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
- return 0;
-}
-
-// Methods inherit from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
-void
-ACEXML_Svcconf_Handler::error (ACEXML_SAXParseException & ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-void
-ACEXML_Svcconf_Handler::fatalError (ACEXML_SAXParseException & ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-void
-ACEXML_Svcconf_Handler::warning (ACEXML_SAXParseException & ACEXML_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((ACEXML_SAXException))
-{
- // No-op.
-}
-
-int
-ACEXML_Svcconf_Handler::get_stream_id (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
-{
-
-
- if (alist != 0)
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("id")) == 0)
- {
- this->stream_info_.name (alist->getValue (i));
- }
- else
- {
- // @@ Exception...
- return -1;
- }
- }
- return 0;
-}
-
-int
-ACEXML_Svcconf_Handler::get_id (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
-{
-
-
- if (alist != 0)
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("id")) == 0)
- {
- this->parsed_info_.name (alist->getValue (i));
- }
- else
- {
- // @@ Exception...
- return -1;
- }
- }
- return 0;
-}
-
-int
-ACEXML_Svcconf_Handler::get_dynamic_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
-{
-
-
- if (alist != 0)
- {
- ACE_Parsed_Info *info = (this->in_stream_def_ == 0 ?
- &this->parsed_info_ :
- &this->stream_info_);
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("id")) == 0)
- {
- info->name (alist->getValue (i));
- }
- else if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("status")) == 0)
- {
- if (ACE_OS_String::strcmp (alist->getValue (i), ACE_TEXT ("inactive")) == 0)
- {
- }
- else if (ACE_OS_String::strcmp (alist->getValue (i), ACE_TEXT ("active")) == 0)
- {
- }
- else
- {
- // @@ error, invalid 'status' value.
- }
- }
- else if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("type")) == 0)
- {
- if (ACE_OS_String::strcmp (alist->getValue (i), ACE_TEXT ("service_object")) == 0)
- {
- info->service_type (ACE_Parsed_Info::SERVICE_OBJECT_TYPE);
- }
- else if (ACE_OS_String::strcmp (alist->getValue (i), ACE_TEXT ("stream")) == 0)
- {
- info->service_type (ACE_Parsed_Info::STREAM_TYPE);
- }
- else if (ACE_OS_String::strcmp (alist->getValue (i), ACE_TEXT ("module")) == 0)
- {
- info->service_type (ACE_Parsed_Info::MODULE_TYPE);
- }
- else
- {
- // @@ error, invalid 'type' value.
- }
- }
- else
- {
- // @@ Exception...
- return -1;
- }
- }
- }
- return 0;
-}
-
-int
-ACEXML_Svcconf_Handler::get_initializer_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
-{
-
-
- if (alist != 0)
- {
- ACE_Parsed_Info *info = (this->in_stream_def_ == 0 ?
- &this->parsed_info_ :
- &this->stream_info_);
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("init")) == 0)
- {
- info->init_func (alist->getValue (i));
- }
- else if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("path")) == 0)
- {
- info->path (alist->getValue (i));
- }
- else if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("params")) == 0)
- {
- info->init_params (alist->getValue (i));
- }
- else
- {
- // @@ Exception...
- return -1;
- }
- }
- }
- return 0;
-}
-
-int
-ACEXML_Svcconf_Handler::get_static_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL)
-{
-
-
- if (alist != 0)
- {
- ACE_Parsed_Info *info = (this->in_stream_def_ == 0 ?
- &this->parsed_info_ :
- &this->stream_info_);
- for (size_t i = 0; i < alist->getLength (); ++i)
- {
- if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("id")) == 0)
- {
- info->name (alist->getValue (i));
- }
- else if (ACE_OS_String::strcmp (alist->getQName (i), ACE_TEXT ("params")) == 0)
- {
- info->init_params (alist->getValue (i));
- }
- else
- {
- // @@ Exception...
- return -1;
- }
- }
- }
- return 0;
-}
diff --git a/ACEXML/examples/svcconf/Svcconf_Handler.h b/ACEXML/examples/svcconf/Svcconf_Handler.h
deleted file mode 100644
index 3c02f9e9d4a..00000000000
--- a/ACEXML/examples/svcconf/Svcconf_Handler.h
+++ /dev/null
@@ -1,285 +0,0 @@
-// $Id$
-
-//=============================================================================
-/**
- * @file Svcconf_Handler.h
- *
- * $Id$
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-#ifndef ACEXML_SVCCONF_HANDLER_H
-#define ACEXML_SVCCONF_HANDLER_H
-
-#include "ACEXML/common/DefaultHandler.h"
-
-class ACE_Parsed_Info
-{
-public:
- typedef enum {
- MODULE_TYPE,
- SERVICE_OBJECT_TYPE,
- STREAM_TYPE,
- INVALID_TYPE
- } Service_Type;
-
- ACE_Parsed_Info ();
- ~ACE_Parsed_Info ();
-
- /**
- * Set/get name of a parsed entity.
- */
- int name (const ACEXML_Char *n);
- const ACEXML_Char *name (void);
-
- /**
- * Set/get type of a dynamic node.
- */
- int service_type (Service_Type type);
- Service_Type service_type (void);
-
- /**
- * Set/Get active status.
- */
- int active (int a);
- int active (void);
-
- /**
- * Set/get initializer path.
- */
- int path (const ACEXML_Char *n);
- const ACEXML_Char *path (void);
-
- /**
- * Set/get initializer init function.
- */
- int init_func (const ACEXML_Char *n);
- const ACEXML_Char *init_func (void);
-
- /**
- * Set/get initializer init parameter.
- */
- int init_params (const ACEXML_Char *n);
- const ACEXML_Char *init_params (void);
-
- /**
- * Reset Parsed_Info.
- */
- void reset (void);
-
-protected:
- ACEXML_Char *name_;
- Service_Type service_type_;
- int active_;
- ACEXML_Char *path_;
- ACEXML_Char *init_func_;
- ACEXML_Char *init_params_;
-};
-
-/**
- * @class ACEXML_Svcconf_Handler
- *
- * @brief ACEXML_Svcconf_Handler is an example SAX event handler.
- *
- * This SAX event handler try to regenerate the XML document it
- * reads with correct indentation.
- */
-class ACEXML_Svcconf_Handler : public ACEXML_DefaultHandler
-{
-public:
- /*
- * Default constructor.
- */
- ACEXML_Svcconf_Handler (void);
-
- /*
- * Default destructor.
- */
- virtual ~ACEXML_Svcconf_Handler (void);
-
- // Methods inherit from ACEXML_ContentHandler.
-
- /*
- * Receive notification of character data.
- */
- virtual void characters (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of a document.
- */
- virtual void endDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the end of an element.
- */
- virtual void endElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * End the scope of a prefix-URI mapping.
- */
- virtual void endPrefixMapping (const ACEXML_Char *prefix ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of ignorable whitespace in element content.
- */
- virtual void ignorableWhitespace (const ACEXML_Char *ch,
- int start,
- int length ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a processing instruction.
- */
- virtual void processingInstruction (const ACEXML_Char *target,
- const ACEXML_Char *data ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive an object for locating the origin of SAX document events.
- */
- virtual void setDocumentLocator (ACEXML_Locator *) ;
-
- /*
- * Receive notification of a skipped entity.
- */
- virtual void skippedEntity (const ACEXML_Char *name ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of a document.
- */
- virtual void startDocument (ACEXML_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of the beginning of an element.
- */
- virtual void startElement (const ACEXML_Char *namespaceURI,
- const ACEXML_Char *localName,
- const ACEXML_Char *qName,
- ACEXML_Attributes *atts ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Begin the scope of a prefix-URI Namespace mapping.
- */
- virtual void startPrefixMapping (const ACEXML_Char *prefix,
- const ACEXML_Char *uri ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // *** Methods inherit from ACEXML_DTDHandler.
-
- /*
- * Receive notification of a notation declaration event.
- */
- virtual void notationDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of an unparsed entity declaration event.
- */
- virtual void unparsedEntityDecl (const ACEXML_Char *name,
- const ACEXML_Char *publicId,
- const ACEXML_Char *systemId,
- const ACEXML_Char *notationName ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_EnitityResolver.
-
- /*
- * Allow the application to resolve external entities.
- */
- virtual ACEXML_InputSource *resolveEntity (const ACEXML_Char *publicId,
- const ACEXML_Char *systemId ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- // Methods inherit from ACEXML_ErrorHandler.
-
- /*
- * Receive notification of a recoverable error.
- */
- virtual void error (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a non-recoverable error.
- */
- virtual void fatalError (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
- /*
- * Receive notification of a warning.
- */
- virtual void warning (ACEXML_SAXParseException &exception ACEXML_ENV_ARG_DECL)
- ACE_THROW_SPEC ((ACEXML_SAXException))
- ;
-
-protected:
- /**
- * Get the only attribute in <stream> or <streamdef>.
- */
- int get_stream_id (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL);
-
- /**
- * Get the only attribute in <resume>, <suspend>, <remove>
- */
- int get_id (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL);
-
- /**
- * Get the dynamic tag attributes.
- */
- int get_dynamic_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL);
-
- /**
- * Get the initializer tag attributes.
- */
- int get_initializer_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL);
-
- /**
- * Get the static tag attributes.
- */
- int get_static_attrs (ACEXML_Attributes *alist ACEXML_ENV_ARG_DECL);
-
-private:
- /// We are parsing a stream definition
- int in_stream_def_;
-
- /// We are defining a steam module
- int in_module_;
-
- ACE_Parsed_Info parsed_info_;
-
- ACE_Parsed_Info stream_info_;
-};
-
-#if defined (__ACEXML_INLINE__)
-# include "Svcconf_Handler.i"
-#endif /* __ACEXML_INLINE__ */
-#endif /* ACEXML_SVCCONF_HANDLER_H */
diff --git a/ACEXML/examples/svcconf/Svcconf_Handler.i b/ACEXML/examples/svcconf/Svcconf_Handler.i
deleted file mode 100644
index fb6ea3db2ce..00000000000
--- a/ACEXML/examples/svcconf/Svcconf_Handler.i
+++ /dev/null
@@ -1,133 +0,0 @@
-// -*- C++ -*- $Id$
-
-ACE_INLINE
-ACE_Parsed_Info::ACE_Parsed_Info ()
- : name_ (0),
- service_type_ (INVALID_TYPE),
- active_ (1),
- path_ (0),
- init_func_ (0),
- init_params_ (0)
-{
-}
-
-ACE_INLINE
-ACE_Parsed_Info::~ACE_Parsed_Info ()
-{
- delete this->name_;
- delete this->path_;
- delete this->init_func_;
- delete this->init_params_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::name (const ACEXML_Char *n)
-{
- if (this->name_ == 0)
- {
- this->name_ = ACE::strnew (n);
- return 0;
- }
- return -1;
-}
-
-ACE_INLINE const ACEXML_Char *
-ACE_Parsed_Info::name (void)
-{
- return this->name_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::service_type (Service_Type type)
-{
- if (this->service_type_ == INVALID_TYPE)
- {
- this->service_type_ = type;
- return 0;
- }
- return -1;
-}
-
-ACE_INLINE ACE_Parsed_Info::Service_Type
-ACE_Parsed_Info::service_type (void)
-{
- return this->service_type_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::active (int a)
-{
- this->active_ = a;
- return 0;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::active (void)
-{
- return this->active_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::path (const ACEXML_Char *p)
-{
- if (this->path_ == 0)
- {
- this->path_ = ACE::strnew (p);
- return 0;
- }
- return -1;
-}
-
-ACE_INLINE const ACEXML_Char *
-ACE_Parsed_Info::path (void)
-{
- return this->path_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::init_func (const ACEXML_Char *n)
-{
- if (this->init_func_ == 0)
- {
- this->init_func_ = ACE::strnew (n);
- return 0;
- }
- return -1;
-}
-
-ACE_INLINE const ACEXML_Char *
-ACE_Parsed_Info::init_func (void)
-{
- return this->init_func_;
-}
-
-ACE_INLINE int
-ACE_Parsed_Info::init_params (const ACEXML_Char *n)
-{
- if (this->init_params_ == 0)
- {
- this->init_params_ = ACE::strnew (n);
- return 0;
- }
- return -1;
-}
-
-ACE_INLINE const ACEXML_Char *
-ACE_Parsed_Info::init_params (void)
-{
- return this->init_params_;
-}
-
-ACE_INLINE void
-ACE_Parsed_Info::reset (void)
-{
- delete this->name_;
- this->name_ = 0;
- this->service_type_ = INVALID_TYPE;
- delete this->path_;
- this->path_ = 0;
- delete this->init_func_;
- this->init_func_ = 0;
- delete this->init_params_;
- this->init_params_ = 0;
-}
diff --git a/ACEXML/examples/svcconf/main.cpp b/ACEXML/examples/svcconf/main.cpp
deleted file mode 100644
index d23ffcbe91a..00000000000
--- a/ACEXML/examples/svcconf/main.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-// $Id$
-
-#include "ACEXML/common/FileCharStream.h"
-#include "ACEXML/common/StrCharStream.h"
-#include "ACEXML/parser/parser/Parser.h"
-#include "Svcconf_Handler.h"
-#include "ace/Get_Opt.h"
-#include "ace/Auto_Ptr.h"
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- ACE_TCHAR *filename = 0;
-
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("f:"));
- ACE_TCHAR c;
-
- while ((c = get_opt ()) != -1)
- {
- switch (c)
- {
- case 'f':
- filename = get_opt.opt_arg ();
- break;
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("Usage: %s [-f <filename>]\n")
- ACE_TEXT (" -f: Specify the svcconf filename\n"),
- argv[0]),
- -1);
- }
- };
-
- if (filename == 0)
- ACE_ERROR_RETURN ((LM_ERROR, "No filename specified\n"), -1);
-
- ACEXML_DefaultHandler *handler = 0;
- auto_ptr<ACEXML_DefaultHandler> cleanup_handler (handler);
- ACEXML_CharStream *stm = 0;
- ACEXML_FileCharStream *fstm = 0;
- ACE_NEW_RETURN (fstm,
- ACEXML_FileCharStream (),
- 1);
-
- if (fstm->open (filename) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("Fail to open XML file: %s\n"),
- filename),
- -1);
- stm = fstm;
-
- ACE_NEW_RETURN (handler,
- ACEXML_Svcconf_Handler (),
- -1);
-
- ACEXML_Parser parser;
- ACEXML_InputSource input(stm);
-
- parser.setContentHandler (handler);
- parser.setDTDHandler (handler);
- parser.setErrorHandler (handler);
- parser.setEntityResolver (handler);
-
- ACEXML_TRY_NEW_ENV
- {
- parser.parse (&input ACEXML_ENV_ARG_PARAMETER);
- ACEXML_TRY_CHECK;
- }
- ACEXML_CATCH (ACEXML_SAXException, ex)
- {
- ex.print ();
- return -1;
- }
- ACEXML_ENDTRY;
- return 0;
-}
diff --git a/ACEXML/examples/test_docs/svcconf.dtd b/ACEXML/examples/test_docs/svcconf.dtd
deleted file mode 100644
index b9e6cc41c8e..00000000000
--- a/ACEXML/examples/test_docs/svcconf.dtd
+++ /dev/null
@@ -1,60 +0,0 @@
-<!-- $Id$ -->
-<!-- Document Type Definition for XML ACE Service Config files -->
-
-<!-- An ACE_Svc_Conf document contains zero or more entries -->
-<!-- The entries are processed in the order they appear -->
-<!-- in the ACE_Svc_Conf file. -->
-<!ELEMENT ACE_Svc_Conf (dynamic|static|suspend|resume|remove|stream|streamdef)*>
-
-<!-- Streams are separate into two elements. One defines how -->
-<!-- the stream should be constructed and the other defines -->
-<!-- what to do with it. The identity of a stream is defined -->
-<!-- in the first dynamic/static element. -->
-<!ELEMENT streamdef ((dynamic|static),module)>
-<!-- @@ Do we ever need to suspend/resume/remove modules when -->
-<!-- constructing a stream? Should we leave only dynamic -->
-<!-- and static here? -->
-<!ELEMENT module (dynamic|static|suspend|resume|remove)+>
-
-<!-- A 'stream' element controls the stream object -->
-<!-- @@ Likewise, we are reusing the 'module' element here. -->
-<!-- Do we ever need to insert new modules into a stream? -->
-<!-- Nanbor: I guess we can do that. -->
-<!ELEMENT stream (module)>
-<!ATTLIST stream id IDREF #REQUIRED>
-
-<!-- A 'dynamic' entry. -->
-<!-- @@ The kind of attributes the corresponding initializer -->
-<!-- should take seems to be determined by the 'type' -->
-<!-- attribute. Should we further partition the dynamic -->
-<!-- element definition into several elements? E.g. into -->
-<!-- dyn_service_object/dyn_module/dyn_stream? -->
-<!-- Nanbor: Will that be too confusing? -->
-<!ELEMENT dynamic (initializer)>
-<!ATTLIST dynamic id ID #REQUIRED
- status (active|inactive) "active"
- type (module|service_object|stream) #REQUIRED>
-
-<!-- Initializing function for dynamic entry. -->
-<!ELEMENT initializer EMPTY>
-<!ATTLIST initializer init CDATA #REQUIRED
- path CDATA #IMPLIED
- params CDATA #IMPLIED>
-
-<!-- A 'static' entry takes an ID attribute and an optional -->
-<!-- parameter lists. -->
-<!ELEMENT static EMPTY>
-<!ATTLIST static id ID #REQUIRED
- params CDATA #IMPLIED>
-
-<!-- A 'suspend' entry takes an ID attribute. -->
-<!ELEMENT suspend EMPTY>
-<!ATTLIST suspend id IDREF #REQUIRED>
-
-<!-- A 'resume' entry takes an ID attribute. -->
-<!ELEMENT resume EMPTY>
-<!ATTLIST resume id IDREF #REQUIRED>
-
-<!-- A 'remove' entry takes an ID attribute. -->
-<!ELEMENT remove EMPTY>
-<!ATTLIST remove id IDREF #REQUIRED>