testnode.cpp File Reference

#include <Sockets/XmlDocument.h>
#include <Sockets/XmlNode.h>
#include <Sockets/Exception.h>
#include <iostream>

Include dependency graph for testnode.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 27 of file testnode.cpp.

00028 {
00029         try
00030         {
00031                 Xml::XmlDocument doc("conf.xml");
00032                 Xml::XmlNode n(doc);
00033                 {
00034                         Xml::XmlNode n2(n, "security");
00035                         while (n2)
00036                         {
00037                                 printf("Found 'security'\n");
00038                                 printf(" targetNamespace: '%s'\n", n2.FindProperty("targetNamespace", true).c_str());
00039                                 ++n2;
00040                         }
00041                 }
00042 
00043         }
00044         catch (const Exception& e)
00045         {
00046                 std::cout << e.ToString() << std::endl;
00047         }
00048 }


Generated on Sun Oct 11 10:57:20 2009 for Xml Schema class generator by  doxygen 1.5.5