From 42ae34df3c11483a798bfa01a31b9494fc8d8315 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 7 Feb 2024 00:55:30 +0100 Subject: Add cxml::add_child() and cxml::add_text_child(). --- src/cxml.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cxml.h') diff --git a/src/cxml.h b/src/cxml.h index 3a8ba14..4176622 100644 --- a/src/cxml.h +++ b/src/cxml.h @@ -36,6 +36,7 @@ namespace xmlpp { class DomParser; + class Element; class Node; } @@ -269,6 +270,11 @@ private: std::string _root_name; }; + +xmlpp::Element* add_child(xmlpp::Element* parent, std::string const& name); +void add_text_child(xmlpp::Element* parent, std::string const& name, std::string const& text); + + } #endif -- cgit v1.2.3