public int docType_5()
{
using (XmlWriter w = CreateWriter())
{
String docName = "Root";
String docValue = "]>";
w.WriteDocType(docName, null, null, docValue);
w.WriteStartElement("Root");
w.WriteEndElement();
}
string exp = IsIndent() ? "<!DOCTYPE Root []>]>" + Environment.NewLine + "<Root />" : "<!DOCTYPE Root []>]><Root />";
return CompareString(exp) ? TEST_PASS : TEST_FAIL;
}