30 #ifndef _RL_XML_ATTRIBUTE_H_
31 #define _RL_XML_ATTRIBUTE_H_
34 #include <boost/shared_array.hpp>
35 #include <libxml/parser.h>
49 Attribute(xmlNodePtr node, const ::std::string& name, const ::std::string& value) :
53 reinterpret_cast< const xmlChar* >(name.c_str()),
54 reinterpret_cast< const xmlChar* >(value.c_str())
62 if (NULL == this->
attr->doc)
64 xmlFreeProp(this->
attr);
70 ::boost::shared_array< xmlChar > value(
78 return reinterpret_cast< char*
>(value.get());
88 xmlRemoveProp(this->
attr);
96 reinterpret_cast< const xmlChar* >(value.c_str())
108 #endif // _RL_XML_ATTRIBUTE_H_