src/content/xml.cpp
/**
 * @brief Generate a human readable error message from a PugiXML result object
 *
 * @param[in] result  result object from a previous PugiXML call
 *
 * @return    Human readable error message
 */
@brief Generate a human readable error message from a PugiXML result object
@param[in] result  result object from a previous PugiXML call

@return    Human readable error message
@brief Generate a human readable error message from a PugiXML result object @param [ in ] result result object from a previous PugiXML call @return Human readable error message
std::string xml_error_string(const pugi::xml_parse_result& result)
{
    std::stringstream ss;
    ss << "XMLError " << result.status <<
        ": " << result.description() <<
        " at offset " << result.offset;
    return ss.str();
}
std :: string xml_error_string ( const pugi :: xml_parse_result & result ) { std :: stringstream ss ; ss << " " << result . status << " " << result . description ( ) << " " << result . offset ; return ss . str ( ) ; }
@brief Generate a human readable error message from a PugiXML result object
 @param[in] result  result object from a previous PugiXML call
@brief Generate a human readable error message from a PugiXML result object @param [ in ] result result object from a previous PugiXML call