22 #ifndef mia_core_xmlinterface_hh
23 #define mia_core_xmlinterface_hh
52 typedef std::shared_ptr<CXMLElement>
Pointer;
84 void set_attribute(
const char *name,
const std::string& value);
90 void set_child_text(
const std::string& value);
93 const std::string& get_name()
const;
101 const std::string get_attribute(
const std::string& name)
const;
106 const std::vector<CXMLElement::Pointer>& get_all_children()
const;
115 std::vector<CXMLElement::Pointer> get_children(
const char *name)
const;
118 const std::string& get_content()
const;
122 struct CXMLElementImpl *impl;
123 friend CXMLElementImpl;
170 bool read_from_string(
const char *init);
178 std::string write_to_string(
const char *encoding = NULL,
bool formatted =
true)
const;
184 std::string m_last_error;