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();