Struct parse_result

struct parse_result

A XML parse result structure with an error message and the pugi::xml_document document.

Public Functions

inline parse_result(std::unique_ptr<pugi::xml_document> &&xml, std::string error_msg)

Constructs parse_result with pugi::xml_document and an error message.

Parameters
  • xml – The pugi::xml_document

  • error_msg[in] The error message

Public Members

std::unique_ptr<pugi::xml_document> xml

A XML document.

std::string error_msg = {}

An error message.