public int var_6b()
{
XmlWriterSettings ws = new XmlWriterSettings();
ws.ConformanceLevel = ConformanceLevel.Auto;
XmlWriter wf = CreateWriter(ws);
XmlWriter w = WriterHelper.Create(wf);
w.WriteStartDocument(true);
w.WriteStartElement("a");
w.Dispose();
string enc = (WriterType == WriterType.UnicodeWriter || WriterType == WriterType.UnicodeWriterIndent) ? "16" : "8";
string exp = (WriterType == WriterType.UTF8WriterIndent || WriterType == WriterType.UnicodeWriterIndent) ?
String.Format("<?xml version=\"1.0\" encoding=\"utf-{0}\"?>" + nl + "<a />", enc) :
String.Format("<?xml version=\"1.0\" encoding=\"utf-{0}\"?><a />", enc);
exp = (WriterType == WriterType.CustomWriter) ? "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><a />" : exp;
return (CompareString(exp)) ? TEST_PASS : TEST_FAIL;
}
}