libfilezilla
|
A stremable XML parser that resolves namespace declarations and namespace prefixes. More...
#include <xml.hpp>
Public Types | |
typedef std::function< bool(callback_event type, std::string_view path, std::string_view name, std::string_view value)> | raw_callback_t |
Additional raw callback to look at events before namespace processing takes place. | |
Public Member Functions | |
namespace_parser (parser::callback_t const &cb) | |
namespace_parser (parser::callback_t &&cb) | |
void | set_callback (parser::callback_t &&cb) |
void | set_callback (parser::callback_t const &cb) |
bool | parse (std::string_view data) |
bool | finalize () |
std::string | get_error () const |
void | set_raw_callback (raw_callback_t &&cb) |
void | set_raw_callback (raw_callback_t const &cb) |
A stremable XML parser that resolves namespace declarations and namespace prefixes.
Works like fz::xml::parser, but replaces namespace prefixes in element and attribute names with the corresponding namespace name and applies default namespaces to element names.
Namespace delcarations are omitted from attribute callbacks.
Limitation: Does not support more than 50 attributes per element.