public int attrNamespace_31()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("d", "Data", "http://example.org/data");
w.WriteStartElement("g", "GoodStuff", "http://example.org/data/good");
w.WriteAttributeString("hello", "world");
w.WriteEndElement();
w.WriteStartElement("BadStuff", "http://example.org/data/bad");
w.WriteAttributeString("hello", "world");
w.WriteEndElement();
w.WriteEndElement();
}
return CompareReader("<d:Data xmlns:d=\"http://example.org/data\">" +
"<g:GoodStuff hello=\"world\" xmlns:g=\"http://example.org/data/good\" />" +
"<BadStuff hello=\"world\" xmlns=\"http://example.org/data/bad\" />" +
"</d:Data>") ? TEST_PASS : TEST_FAIL;
}