public int XmlLang_6()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root");
w.WriteStartAttribute("xml", "lang", null);
w.WriteString("en-US");
w.WriteEndAttribute();
CError.Compare(w.XmlLang, "en-US", "Error");
w.WriteEndElement();
}
return TEST_PASS;
}