summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLWriter.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2015-07-16 21:06:44 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-21 14:11:53 (GMT)
commitd740762181976834df32bc9baaf273e5278313b0 (patch)
tree1924d1b9ae69493f682c3b6ac1f4541871d3f1af /Source/cmXMLWriter.cxx
parentdd27e31351be89bc0c28183fc347d6082bca1e36 (diff)
downloadCMake-d740762181976834df32bc9baaf273e5278313b0.zip
CMake-d740762181976834df32bc9baaf273e5278313b0.tar.gz
CMake-d740762181976834df32bc9baaf273e5278313b0.tar.bz2
cmXMLWriter: add Doctype() method
Diffstat (limited to 'Source/cmXMLWriter.cxx')
-rw-r--r--Source/cmXMLWriter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmXMLWriter.cxx b/Source/cmXMLWriter.cxx
index ab9939a..6a9172a 100644
--- a/Source/cmXMLWriter.cxx
+++ b/Source/cmXMLWriter.cxx
@@ -92,6 +92,13 @@ void cmXMLWriter::CData(std::string const& data)
this->Output << "<![CDATA[" << data << "]]>";
}
+void cmXMLWriter::Doctype(const char* doctype)
+{
+ this->CloseStartElement();
+ this->ConditionalLineBreak(!this->IsContent, this->Elements.size());
+ this->Output << "<!DOCTYPE " << doctype << ">";
+}
+
void cmXMLWriter::ProcessingInstruction(const char* target, const char* data)
{
this->CloseStartElement();