summaryrefslogtreecommitdiff
path: root/src/cxml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cxml.cc')
-rw-r--r--src/cxml.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cxml.cc b/src/cxml.cc
index 99055ee..810abf8 100644
--- a/src/cxml.cc
+++ b/src/cxml.cc
@@ -268,6 +268,14 @@ cxml::Document::read_stream (istream& stream)
}
void
+cxml::Document::read_string (string s)
+{
+ stringstream t (s);
+ _parser->parse_stream (t);
+ take_root_node ();
+}
+
+void
cxml::Document::take_root_node ()
{
if (!_parser) {