public int element_9()
{
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:b xmlns:a=\"c\" />", enc) :
String.Format("<?xml version=\"1.0\" encoding=\"utf-{0}\"?><a:b xmlns:a=\"c\" />", enc);
XmlWriterSettings ws = new XmlWriterSettings();
ws.OmitXmlDeclaration = false;
using (XmlWriter w = CreateWriter(ws))
{
w.WriteStartElement("a", "b", "c");
}
return (CompareString(exp)) ? TEST_PASS : TEST_FAIL;
}