summaryrefslogtreecommitdiffstats
path: root/src/XMLDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/XMLDocument.cpp')
-rw-r--r--src/XMLDocument.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/XMLDocument.cpp b/src/XMLDocument.cpp
index b39875b..406564f 100644
--- a/src/XMLDocument.cpp
+++ b/src/XMLDocument.cpp
@@ -109,4 +109,12 @@ void XMLDocument::saveToFile(string sFilename)
}
//-----------------------------------------------------------------------------
+std::string XMLDocument::toString()
+{
+ std::stringstream ss;
+ ss << *fDOMDocument->first_node();
+ return ss.str();
+}
+
+//-----------------------------------------------------------------------------