RouterFleXML now reads XML simple config and make proper runtime
[metaproxy-moved-to-github.git] / src / xmlutil.hpp
1 /* $Id: xmlutil.hpp,v 1.1 2006-01-09 13:43:59 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef XML_UTIL_HPP
8 #define XML_UTIL_HPP
9
10 #include <string>
11 #include <stdexcept>
12 #include <libxml/tree.h>
13
14 namespace yp2 {
15     namespace xml {
16         std::string get_text(const xmlNode *ptr);
17         bool is_element(const xmlNode *ptr, 
18                         const std::string &ns,
19                         const std::string &name);
20         bool is_element_yp2(const xmlNode *ptr, const std::string &name);
21     }
22 }
23
24 #endif
25 /*
26  * Local variables:
27  * c-basic-offset: 4
28  * indent-tabs-mode: nil
29  * c-file-style: "stroustrup"
30  * End:
31  * vim: shiftwidth=4 tabstop=8 expandtab
32  */