22 #ifndef mia_core_xmlinterface_hh
23 #define mia_core_xmlinterface_hh
51 typedef std::shared_ptr<CXMLElement>
Pointer;
83 void set_attribute(
const char *name,
const std::string& value);
89 void set_child_text(
const std::string& value);
92 const std::string& get_name()
const;
100 const std::string get_attribute(
const std::string& name)
const;
105 const std::vector<CXMLElement::Pointer>& get_all_children()
const;
114 std::vector<CXMLElement::Pointer> get_children(
const char *name)
const;
117 const std::string& get_content()
const;
121 struct CXMLElementImpl *impl;
122 friend CXMLElementImpl;
168 bool read_from_string(
const char *init);
176 std::string write_to_string(
const char *encoding = NULL,
bool formatted =
true)
const;
182 std::string m_last_error;