Struct xml_parse_result

Synopsis

#include <src/pugixml.hpp>

struct PUGIXML_CLASS xml_parse_result

Description

Parsing result.

Mentioned in

Methods

xml_parse_resultDefault constructor, initializes object to failed state.
descriptionGet error description.
operator boolCast to bool operator.

Source

Lines 1000-1019 in src/pugixml.hpp.

struct PUGIXML_CLASS xml_parse_result
{
    // Parsing status (see xml_parse_status)
    xml_parse_status status;
    // Last parsed offset (in char_t units from start of input data)
    ptrdiff_t offset;
    // Source document encoding
    xml_encoding encoding;
    // Default constructor, initializes object to failed state
    xml_parse_result();
    // Cast to bool operator
    operator bool() const;
    // Get error description
    const char* description() const;
};





Add Discussion as Guest

Log in