12 #ifndef DOCWIRE_XML_READER_H
13 #define DOCWIRE_XML_READER_H
15 #include "safety_policy.h"
17 #include <string_view>
19 #include "xml_export.h"
39 processing_instruction = 7,
43 document_fragment = 11,
46 significant_whitespace = 14,
62 template <safety_policy safety_level = default_safety_level>
87 std::string_view
name()
const;
A wrapper for numeric types that enforces a range [Min, Max].
A forward-only, non-cached XML reader.
std::string_view name() const
Returns the local name of the current node.
bool move_to_first_attribute() const
Moves the reader to the first attribute of the current element.
std::string_view string_value() const
Returns the string value of the current node (concatenated text of children).
bool read_next() const
Advances the reader to the next node.
reader(std::string_view xml_sv, reader_blanks blanks_option=reader_blanks::keep)
Constructs a reader from a string view.
bool move_to_next_attribute() const
Moves the reader to the next attribute.
std::string_view content() const
Returns the content of the current node (e.g., text inside an element).
std::string_view full_name() const
Returns the full name (including namespace) of the current node.
void move_to_element() const noexcept(safety_level==relaxed)
Moves the reader back to the element containing the attributes.
XML processing utilities.
node_type
Represents the type of an XML node.
reader_blanks
Options for handling blank nodes in the XML reader.