public int attrNamespace_40()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("root");
w.WriteAttributeString("xmlns", null, null, "test");
w.WriteEndElement();
}
catch (XmlException e)
{
CError.WriteLineIgnore(e.ToString());
return TEST_PASS;
}
catch (ArgumentException e)
{
CError.WriteLineIgnore(e.ToString());
return TEST_PASS;
}
}
return TEST_FAIL;
}