From 05cec243c28f50bd5ee7a167067501f7bd8db3ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 May 2014 17:23:21 +0300 Subject: Validate xml downloads, and if failed, use another mirror. --- src/utils/xml.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/xml.h') diff --git a/src/utils/xml.h b/src/utils/xml.h index d8a281045..9ed433ad5 100644 --- a/src/utils/xml.h +++ b/src/utils/xml.h @@ -93,8 +93,14 @@ namespace XML bool isLoaded() const { return mDoc != nullptr; } + bool isValid() const + { return mIsValid; } + + static bool validateXml(const std::string &fileName); + private: xmlDocPtr mDoc; + bool mIsValid; }; /** -- cgit v1.2.3-70-g09d2