Orcus
Public Attributes | List of all members
orcus::sax::parser_attribute Struct Reference

#include <sax_parser_base.hpp>

Public Attributes

std::string_view ns
 
std::string_view name
 
std::string_view value
 
bool transient
 

Detailed Description

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.

Member Data Documentation

◆ name

std::string_view orcus::sax::parser_attribute::name

Attribute name.

◆ ns

std::string_view orcus::sax::parser_attribute::ns

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

◆ transient

bool orcus::sax::parser_attribute::transient

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

◆ value

std::string_view orcus::sax::parser_attribute::value

Attribute value.