00001 // 00002 // C++ Interface: document 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: yessss <gennadiyesss@mail.ru>, (C) 2007 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 #ifndef DOCUMENT_H 00013 #define DOCUMENT_H 00014 00015 #include <xpath.h> 00016 #include <xselect.h> 00017 #include <xtest.h> 00018 #include <xpathresult.h> 00019 00020 class xml_loader; 00021 00025 class Document { 00026 public: 00027 void* root; 00028 std::string root_type; 00029 Document(){root = NULL;} 00030 virtual ~Document(){}; 00031 virtual XPathResult applyXPath(XPath) = 0; 00032 virtual void element ( xml_loader *th, const char *name, const char **atts ) = 0; 00033 }; 00034 00035 #endif