30 #ifndef _RL_XML_DOMPARSER_H_
31 #define _RL_XML_DOMPARSER_H_
34 #include <boost/shared_array.hpp>
35 #include <boost/shared_ptr.hpp>
36 #include <libxml/parser.h>
49 parser(xmlNewParserCtxt(), xmlFreeParserCtxt)
57 Document readFile(const ::std::string& filename, const ::std::string& encoding =
"",
const int& options = 0)
const
59 xmlDocPtr doc = xmlCtxtReadFile(this->
parser.get(), filename.c_str(), encoding.c_str(), options);
72 ::boost::shared_ptr< xmlParserCtxt >
parser;
77 #endif // _RL_XML_DOMPARSER_H_