void WriteXmlDeclaration() {
Debug.Assert(this.outputXmlDecl == true, "It supposed to check this condition before actual call");
Debug.Assert(this.isXmlOutput && ! this.output.OmitXmlDeclaration, "We set outputXmlDecl == true only if");
this.outputXmlDecl = false;
Indent(0);
Write(s_LessThanQuestion);
WriteName(string.Empty, "xml");
Write(s_VersionAll);
if (this.encoding != null) {
Write(s_EncodingStart);
Write(this.encoding.WebName);
Write(s_Quote);
}
if (output.HasStandalone) {
Write(s_Standalone);
Write(output.Standalone ? Keywords.s_Yes : Keywords.s_No);
Write(s_Quote);
}
Write(s_QuestionGreaterThan);
}