| 287 | {} |
| 288 | |
| 289 | void XMLParser::loadFromFile(const std::filesystem::path& filepath, bool add_includes) |
| 290 | { |
| 291 | _p->opened_documents.push_back(std::make_unique<XMLDocument>()); |
| 292 | |
| 293 | XMLDocument* doc = _p->opened_documents.back().get(); |
| 294 | doc->LoadFile(filepath.string().c_str()); |
| 295 | |
| 296 | _p->current_path = std::filesystem::absolute(filepath.parent_path()); |
| 297 | |
| 298 | _p->loadDocImpl(doc, add_includes); |
| 299 | } |
| 300 | |
| 301 | void XMLParser::loadFromText(const std::string& xml_text, bool add_includes) |
| 302 | { |
no test coverage detected