DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
docwire::xml::attributes_view< safety_level > Class Template Reference

A view over the attributes of an XML node. More...

#include <xml_attributes.h>

Inheritance diagram for docwire::xml::attributes_view< safety_level >:

Classes

class  iterator
 Iterator for traversing XML attributes. More...
 

Public Member Functions

iterator begin () const
 
 ~attributes_view () noexcept(noexcept(m_reader.get().move_to_element()))
 Destructor. Moves the reader back to the element containing the attributes to ensure consistent state for further parsing.
 
sentinel end () const
 
 attributes_view (reader< safety_level > &reader)
 Constructs a view from a reader. More...
 

Detailed Description

template<safety_policy safety_level = default_safety_level>
class docwire::xml::attributes_view< safety_level >

A view over the attributes of an XML node.

Template Parameters
safety_levelThe safety policy to use.
Warning
This class relies on a single-pass XML reader. Advancing the reader invalidates this view and any iterators derived from it.
See also
xml::reader
XML parsing example

Definition at line 40 of file xml_attributes.h.

Constructor & Destructor Documentation

◆ attributes_view()

template<safety_policy safety_level = default_safety_level>
docwire::xml::attributes_view< safety_level >::attributes_view ( reader< safety_level > &  reader)
inlineexplicit

Constructs a view from a reader.

Parameters
readerThe XML reader positioned at the element.

Definition at line 59 of file xml_attributes.h.


The documentation for this class was generated from the following file: