sax_token_handler
Defined in header: <orcus/sax_token_parser.hpp>
-
class sax_token_handler
Public Functions
-
inline void declaration(const orcus::xml_declaration_t &decl)
Called immediately after the entire XML declaration has been parsed.
- Parameters:
decl – struct containing the attributes of the XML declaration.
-
inline void start_element(const orcus::xml_token_element_t &elem)
Called at the start of each element.
- Parameters:
elem – struct containing the element’s information as well as all the attributes that belong to the element.
-
inline void end_element(const orcus::xml_token_element_t &elem)
Called at the end of each element.
- Parameters:
elem – struct containing the element’s information as well as all the attributes that belong to the element.
-
inline void characters(std::string_view val, bool transient)
Called when a segment of a text content is parsed. Each text content is a direct child of an element, which may have multiple child contents when the element also has a child element that are direct sibling to the text contents or the text contents are splitted by a comment.
- Parameters:
val – value of the text content.
transient – when true, the text content has been converted and is stored in a temporary buffer due to presence of one or more encoded characters, in which case the passed text value needs to be either immediately converted to a non-text value or be interned within the scope of the callback.
-
inline void declaration(const orcus::xml_declaration_t &decl)