1 /* $Id: xmlutil.hpp,v 1.2 2006-01-11 11:51:50 adam Exp $
2 Copyright (c) 2005, Index Data.
12 #include <libxml/tree.h>
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 std::string get_route(const xmlNode *node);
24 class XMLError : public std::runtime_error {
26 XMLError(const std::string msg) :
27 std::runtime_error("XMLError : " + msg) {} ;
35 * indent-tabs-mode: nil
36 * c-file-style: "stroustrup"
38 * vim: shiftwidth=4 tabstop=8 expandtab