summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 2ca46ed..a955b91 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -214,6 +214,13 @@ cxml::Document::Document (string root_name)
_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;