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::attribute_ref< safety_level > Class Template Reference

A reference to an XML attribute. More...

#include <xml_attribute_ref.h>

Public Member Functions

 attribute_ref (const reader< safety_level > &reader)
 Constructs a reference from a reader positioned at an attribute. More...
 
std::string_view name () const
 Returns the name of the attribute.
 
std::string_view value () const
 Returns the value of the attribute.
 

Detailed Description

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

A reference to an XML attribute.

Template Parameters
safety_levelThe safety policy.
See also
attributes_view
XML parsing example

Definition at line 32 of file xml_attribute_ref.h.

Constructor & Destructor Documentation

◆ attribute_ref()

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

Constructs a reference from a reader positioned at an attribute.

Parameters
readerThe XML reader.

Definition at line 39 of file xml_attribute_ref.h.


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