mirror of https://github.com/kiwix/libkiwix.git
+ readXML()
This commit is contained in:
parent
97d38cd5ad
commit
2fae9e3b71
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@ namespace kiwix {
|
|||
Manager();
|
||||
~Manager();
|
||||
|
||||
bool readFile(const string path);
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue