public int attribute_6()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root");
w.WriteStartAttribute("attr1", "http://my.com");
w.WriteEndAttribute();
w.WriteEndElement();
}
return CompareString("<Root ~a p1 a~:attr1=\"\" xmlns:~a p1 A~=\"http://my.com\" />") ? TEST_PASS : TEST_FAIL;
}