parser_attribute

Defined in header: <orcus/sax_parser_base.hpp>

struct parser_attribute

Attribute properties passed by sax_parser to its handler’s attribute() call. When an attribute value is “transient”, it has been converted due to presence of encoded character(s) and has been stored in a temporary buffer. The handler must assume that the value will not survive after the callback function ends.

Public Members

std::string_view ns

Optional attribute namespace. It may be empty if it’s not given.

std::string_view name

Attribute name.

std::string_view value

Attribute value.

bool transient

Whether or not the attribute value is in a temporary buffer.