Name: libcxml
Description: Library to simplify XML parsing with libxml++
Version: @version@
-Requires: libxml++-2.6
+Requires: libxml++-2.6 glibmm-2.4
Libs: @libs@
Cflags: -I${includedir}
_parser = new xmlpp::DomParser;
}
+cxml::Document::Document (string root_name, boost::filesystem::path file)
+ : _root_name (root_name)
+{
+ _parser = new xmlpp::DomParser ();
+ read_file (file);
+}
+
cxml::Document::~Document ()
{
delete _parser;
{
public:
Document (std::string root_name);
+ Document (std::string root_name, boost::filesystem::path);
void read_file (boost::filesystem::path);
void read_stream (std::istream &);