diff --git a/Source/cmXMLWriter.cxx b/Source/cmXMLWriter.cxx index ab9939afe..6a9172ac7 100644 --- a/Source/cmXMLWriter.cxx +++ b/Source/cmXMLWriter.cxx @@ -92,6 +92,13 @@ void cmXMLWriter::CData(std::string const& data) this->Output << ""; } +void cmXMLWriter::Doctype(const char* doctype) +{ + this->CloseStartElement(); + this->ConditionalLineBreak(!this->IsContent, this->Elements.size()); + this->Output << ""; +} + void cmXMLWriter::ProcessingInstruction(const char* target, const char* data) { this->CloseStartElement(); diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h index c839a6237..308305960 100644 --- a/Source/cmXMLWriter.h +++ b/Source/cmXMLWriter.h @@ -62,6 +62,8 @@ public: void CData(std::string const& data); + void Doctype(const char* doctype); + void ProcessingInstruction(const char* target, const char* data); void FragmentFile(const char* fname);