+ readXML()

This commit is contained in:
kelson42 2011-04-15 17:43:08 +00:00
parent 97d38cd5ad
commit 2fae9e3b71
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@
*/
#include "manager.h"
#include <pugixml.hpp>
namespace kiwix {
@ -28,4 +29,12 @@ namespace kiwix {
/* Destructor */
Manager::~Manager() {
}
bool Manager::readFile(const string path) {
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file(path.c_str());
return result;
}
}

View File

@ -38,6 +38,8 @@ namespace kiwix {
Manager();
~Manager();
bool readFile(const string path);
protected:
};