summaryrefslogtreecommitdiffstats
path: root/src/qhpxmlwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qhpxmlwriter.cpp')
-rw-r--r--src/qhpxmlwriter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qhpxmlwriter.cpp b/src/qhpxmlwriter.cpp
index 93bb8cd..edf9ae0 100644
--- a/src/qhpxmlwriter.cpp
+++ b/src/qhpxmlwriter.cpp
@@ -84,6 +84,12 @@ void QhpXmlWriter::close(char const * elementName)
newLine();
}
+void QhpXmlWriter::declaration(char const * version, char const * encoding)
+{
+ m_out << "<?xml version=\"" << version << "\" encoding=\"" << encoding << "\"?>";
+ newLine();
+}
+
void QhpXmlWriter::indent()
{
if (m_curLineIndented)