public int attrNamespace_2()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root");
w.WriteAttributeString("xmlns", "xml", null, "http://www.w3.org/XML/1998/namespace");
w.WriteEndElement();
}
string exp = (WriterType == WriterType.UnicodeWriter) ? "<Root />" : "<Root xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" />";
return CompareReader(exp) ? TEST_PASS : TEST_FAIL;
}