Orcus
Loading...
Searching...
No Matches
orcus::xml_structure_tree Class Reference

#include <xml_structure_tree.hpp>

Classes

struct  element
struct  entity_name
class  walker

Public Types

typedef std::vector< entity_nameentity_names_type
using range_handler_type = std::function<void(xml_table_range_t&&)>

Public Member Functions

 xml_structure_tree (const xml_structure_tree &)=delete
xml_structure_treeoperator= (const xml_structure_tree &)=delete
 xml_structure_tree (xmlns_context &xmlns_cxt)
 xml_structure_tree (xml_structure_tree &&other)
void parse (std::string_view s)
void dump_compact (std::ostream &os) const
walker get_walker () const
void process_ranges (range_handler_type rh) const
void swap (xml_structure_tree &other)

Detailed Description

Tree representing the structure of elements in XML content. Recurring elements under the same parent are represented by a single element instance. This tree only includes elements; no attributes and content nodes appear in this tree.