00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef LibXMLHelper_h
00022 #define LibXMLHelper_h
00023 #include <string>
00024
00025 extern "C" {
00026 struct _xmlNode;
00027 typedef _xmlNode xmlNode;
00028 }
00029
00034 class LibXMLHelper {
00035 public:
00044 LibXMLHelper();
00045
00049 virtual ~LibXMLHelper();
00050
00058 std::string attribute(xmlNode * node,
00059 const std::string &name,
00060 const std::string &defaultValue = std::string()) const;
00061
00070 std::string content(xmlNode * nodePtr) const;
00071
00077 std::string name(const xmlNode * nodePtr) const;
00078
00084 bool isElement(const xmlNode * nodePtr) const;
00085
00092 std::string positionInfo(const xmlNode * nodePtr) const;
00093 };
00094
00095 #endif