From ba5b0d05ad434779b0882ae1baa6dea33f204bc8 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sun, 17 Nov 2013 22:56:28 +0800 Subject: [PATCH] Don't put XML header in generated DTDs --- src/xmlschemagenerator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xmlschemagenerator.cpp b/src/xmlschemagenerator.cpp index e493565..63135eb 100644 --- a/src/xmlschemagenerator.cpp +++ b/src/xmlschemagenerator.cpp @@ -78,9 +78,10 @@ const wxString &XmlSchemaGenerator::generate ( Grammar::GrammarType grammarType, if ( size > maxReservedSchemaBuffer ) size = maxReservedSchemaBuffer; mSchema.Alloc ( size ); - mSchema << _T("") << getEOL(); if ( mGrammarType == Grammar::SchemaGrammarType ) - mSchema << _T("") + mSchema << _T("") + << getEOL() + << _T("") << getEOL(); xercesc::DOMElement *root = doc->getDocumentElement();