35 [[nodiscard]]
static std::shared_ptr<const XmlDocument>
load(
36 const std::string& path, std::string& error);
45 [[nodiscard]]
static std::shared_ptr<const XmlDocument>
from_rows(
52 [[nodiscard]] std::optional<XmlElementView> root_element() const noexcept;
55 [[nodiscard]]
std::optional<
XmlElementView> element_at(uint64_t row) const noexcept;
63 std::shared_ptr<const Kakshya::CompositeForest>
m_forest;
std::shared_ptr< const Kakshya::CompositeForest > m_forest
static std::shared_ptr< const XmlDocument > from_rows(Kakshya::CompositeArray rows, std::string &error)
Take ownership of rows in the XML node layout.
XmlDocument(std::shared_ptr< const Kakshya::CompositeForest > forest) noexcept
const Kakshya::CompositeForest & forest() const noexcept
The rows together with their parent index.
static std::shared_ptr< const XmlDocument > load(const std::string &path, std::string &error)
Parse a file into an owning document.
Borrowed XML element with named attributes and immediate child elements.
Owns a sequence of values that share a CompositeLayout.
A Composite array together with the index of its parent links.