cmXMLWriter: add Doctype() method

This commit is contained in:
Daniel Pfeifer authored and Brad King committed 2016-03-21 10:11:53 -04:00
1 parent dd27e31351
commit d740762181
2 files changed
+9

No files matched your search

+7
View File
@@ -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();
+2
View File
@@ -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);