summaryrefslogtreecommitdiff
path: root/src/core/XML.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-08 18:11:21 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-08 18:11:21 +0100
commit2c3b327739b79d5ba7fe931e205bec1ad320b360 (patch)
tree6afca317bcd036a51e37e4cbec3cddb6bdeaf555 /src/core/XML.hpp
parent7269e0e232c7971248ffa47aa2ae44786f3d303a (diff)
further extended the advanced document example, slightly improved XML serialization and fixed a bug in DemoOutput leading to errors if a section/paragraph had no heading.
Diffstat (limited to 'src/core/XML.hpp')
-rw-r--r--src/core/XML.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/XML.hpp b/src/core/XML.hpp
index 9ca124a..51ef6fd 100644
--- a/src/core/XML.hpp
+++ b/src/core/XML.hpp
@@ -64,9 +64,12 @@ public:
/**
* This method writes an XML prolog and the XML representing the current
* node, including all children, to the given output stream.
- * @param out is the output stream the serialized data shall be written to.
+ * @param out is the output stream the serialized data shall be
+ * written to.
+ * @param doctype enables you to add a prefix after the XML prolog
+ * specifying the doctype.
*/
- void serialize(std::ostream &out);
+ void serialize(std::ostream &out, const std::string & doctype = "");
/**
* This method just writes the XML representation of this node to the
* output stream, without the XML prolog.