13 static std::string_view
name(
const Source& source) {
return source.name(); }
17 std::string_view
name)
19 return source.attribute(
name);
22 template <
typename Visitor>
30 template <
typename Visitor>
Borrowed XML element with named attributes and immediate child elements.
std::optional< XmlElementView > element
One attribute or immediate child element borrowed from an XML element.
static bool for_each_attribute(const Source &source, Visitor &&visit)
static uint64_t location(const Source &source)
static std::optional< std::string_view > attribute(const Source &source, std::string_view name)
static std::string_view name(const Source &source)
static bool for_each_child(const Source &source, Visitor &&visit)
IO::XmlElementView Source
How a record binding reads one source element of a document tree.