summaryrefslogtreecommitdiff
path: root/CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp')
-rw-r--r--CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp b/CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp
deleted file mode 100644
index 1a57ff4255f..00000000000
--- a/CIAO/tests/IDL3_to_XMI/IDL2XMI_Test/xmlvalidator.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-
-#include "XML_Helper.h"
-
-const ACE_TCHAR *inp_file = ACE_TEXT ("");
-
-int
-parse_args (int argc, ACE_TCHAR *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("i:"));
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'i':
- inp_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("usage: %s ")
- ACE_TEXT ("-i <inputfile>")
- ACE_TEXT ("\n"),
- argv [0]),
- -1);
- }
- // Indicates successful parsing of the command line
- return 0;
-}
-
-int
-ACE_TMAIN(int argc, ACE_TCHAR *argv[])
-{
- if (parse_args (argc, argv) != 0)
- {
- return 1;
- }
-
- XML::XML_Error_Handler handler;
- Test::Helper helper (handler);
-
- if (0 != helper.validate_dom (inp_file))
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Error: %s - invalid xml\n"),
- inp_file));
- return 1;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("%s - valid xml\n"),
- inp_file));
-
- return 0;
-}