00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _XmlDocument_H
00024 #define _XmlDocument_H
00025
00026 #include <string>
00027 #include <libxml/xmlmemory.h>
00028 #include <libxml/parser.h>
00029
00030 namespace Xmlw{
00031
00032 class XmlDocument
00033 {
00034 public:
00035 XmlDocument(const std::string& filename,const std::string& verify_ns = "",const std::string& verify_root = "");
00036 virtual ~XmlDocument();
00037
00039 bool IsOk() { return m_ok; }
00040
00041 operator xmlDocPtr();
00042
00043 protected:
00044 XmlDocument(const XmlDocument& ) {}
00045
00046 private:
00047 XmlDocument& operator=(const XmlDocument& ) { return *this; }
00048
00049 xmlDocPtr m_doc;
00050 bool m_ok;
00051 };
00052
00053
00054 }
00055
00056 #endif // _XmlDocument_H