Skip to content

Doxybook2::Xml::Element

#include <Xml.hpp>

Public Functions

Name
Element() =default
Element(tinyxml2::XMLElement * ptr)
~Element() =default
voidallChildElements(const std::string & name, const ElementCallback & callback) const
NodeasNode() const
ElementnextSiblingElement() const
NodenextSibling() const
ElementnextSiblingElement(const std::string & name) const
NodefirstChild() const
ElementfirstChildElement() const
ElementfirstChildElement(const std::string & name) const
intgetLine() const
const Xml &getDocument() const
std::stringgetAttr(const std::string & name) const
std::stringgetAttr(const std::string & name, const std::string & defaultValue) const
std::stringgetName() const
boolhasText() const
std::stringgetText() const
operator bool() const

Public Functions Documentation

function Element

cpp
Element() =default

function Element

cpp
explicit Element(
    tinyxml2::XMLElement * ptr
)

function ~Element

cpp
~Element() =default

function allChildElements

cpp
void allChildElements(
    const std::string & name,
    const ElementCallback & callback
) const

function asNode

cpp
Node asNode() const

function nextSiblingElement

cpp
Element nextSiblingElement() const

function nextSibling

cpp
Node nextSibling() const

function nextSiblingElement

cpp
Element nextSiblingElement(
    const std::string & name
) const

function firstChild

cpp
Node firstChild() const

function firstChildElement

cpp
Element firstChildElement() const

function firstChildElement

cpp
Element firstChildElement(
    const std::string & name
) const

function getLine

cpp
int getLine() const

function getDocument

cpp
const Xml & getDocument() const

function getAttr

cpp
std::string getAttr(
    const std::string & name
) const

function getAttr

cpp
std::string getAttr(
    const std::string & name,
    const std::string & defaultValue
) const

function getName

cpp
std::string getName() const

function hasText

cpp
bool hasText() const

function getText

cpp
std::string getText() const

function operator bool

cpp
inline operator bool() const

Updated on 2026-05-17 at 13:22:38 +0000

Built with VitePress