LibXMLHelper.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef LibXMLHelper_h
00013 #define LibXMLHelper_h
00014 #include <string>
00015 
00016 extern "C" {
00017   struct _xmlNode;
00018   typedef _xmlNode xmlNode;
00019 }
00020 
00021  namespace zypp {
00022 
00023   namespace parser {
00024 
00029     class LibXMLHelper {
00030     public:
00039       LibXMLHelper();
00040     
00044       virtual ~LibXMLHelper();
00045     
00053       std::string attribute(xmlNode * node, 
00054                             const std::string &name, 
00055                             const std::string &defaultValue = std::string()) const;
00056     
00065       std::string content(xmlNode * nodePtr) const;
00066     
00072       std::string name(const xmlNode * nodePtr) const;
00073     
00079       bool isElement(const xmlNode * nodePtr) const;
00080     
00087       std::string positionInfo(const xmlNode * nodePtr) const;
00088     };
00089   }
00090 }
00091 
00092 #endif

Generated on Thu Jul 6 00:07:21 2006 for zypp by  doxygen 1.4.6