00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <Sockets/XmlDocument.h>
00023 #include <Sockets/XmlNode.h>
00024 #include <Sockets/Exception.h>
00025 #include <iostream>
00026
00027 int main(int argc, char *argv[])
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 }
00049
00050