Add cxml::add_child() and cxml::add_text_child().
[libcxml.git] / src / cxml.h
index 9a71889533e21d65932dbcdaf1c96d0fa4120da2..417662294497594b220d4776a05bcfec116f1a7e 100644 (file)
@@ -35,8 +35,9 @@
 #endif
 
 namespace xmlpp {
-       class Node;
        class DomParser;
+       class Element;
+       class Node;
 }
 
 namespace cxml {
@@ -231,6 +232,8 @@ public:
                return _node;
        }
 
+       bool is_text() const;
+
 protected:
        xmlpp::Node* _node;
 
@@ -267,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