sax_token_parser
Defined in header: <orcus/sax_token_parser.hpp>
-
template<typename HandlerT>
class sax_token_parser SAX parser that tokenizes element and attribute names while parsing. All pre-defined elements and attribute names are translated into integral identifiers via use of tokens. The user of this class needs to provide a pre-defined set of element and attribute names at construction time.
This parser internally uses sax_ns_parser.
- Template Parameters:
HandlerT – Handler type with member functions for event callbacks. Refer to sax_token_handler.
Public Functions
-
sax_token_parser(std::string_view content, const tokens &_tokens, xmlns_context &ns_cxt, handler_type &handler)
-
~sax_token_parser() = default
-
void parse()