19 #ifndef QMCPLUSPLUS_XMLSTRING_H 20 #define QMCPLUSPLUS_XMLSTRING_H 23 #include <string_view> 24 #include <libxml/xmlmemory.h> 25 #include <libxml/tree.h> 38 xmlChar* node_char = xmlNodeListGetString(cur->doc, cur->xmlChildrenNode, 1);
41 assign((
const char*)node_char);
52 void setXMLNodeContent(xmlNodePtr cur)
const { xmlNodeSetContent(cur, (
const xmlChar*)(this->c_str())); }
std::string getXMLAttributeValue(const xmlNodePtr cur, const std::string_view name)
get the value string for attribute name if name is unfound in cur you get an empty string back this i...
XMLNodeString(const char *in)
Matrix< T1, C1 > & assign(Matrix< T1, C1 > &lhs, const RHS &rhs)
void setXMLNodeContent(xmlNodePtr cur) const
write a string to an xmlNode
XMLNodeString(const xmlNodePtr cur)
construct a string from an xmlNode
convert xmlNode contents into a std::string
XMLNodeString(const std::string &in)
expose base class constructors