mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
+ readXML()
This commit is contained in:
@ -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:
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user