cmXMLWriter: add Doctype() method
This commit is contained in:
parent
dd27e31351
commit
d740762181
|
@ -92,6 +92,13 @@ void cmXMLWriter::CData(std::string const& data)
|
||||||
this->Output << "<![CDATA[" << 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)
|
void cmXMLWriter::ProcessingInstruction(const char* target, const char* data)
|
||||||
{
|
{
|
||||||
this->CloseStartElement();
|
this->CloseStartElement();
|
||||||
|
|
|
@ -62,6 +62,8 @@ public:
|
||||||
|
|
||||||
void CData(std::string const& data);
|
void CData(std::string const& data);
|
||||||
|
|
||||||
|
void Doctype(const char* doctype);
|
||||||
|
|
||||||
void ProcessingInstruction(const char* target, const char* data);
|
void ProcessingInstruction(const char* target, const char* data);
|
||||||
|
|
||||||
void FragmentFile(const char* fname);
|
void FragmentFile(const char* fname);
|
||||||
|
|
Loading…
Reference in New Issue