public int writeNode_XmlReader27()
{
string strxml = @"<root xmlns:p1='p1'><p2:child xmlns:p2='p2' /></root>";
XmlReader xr = CreateReader(new StringReader(strxml));
while (xr.Read())
{
if (xr.LocalName == "child")
break;
}
using (XmlWriter w = CreateWriter())
{
w.WriteNode(xr, false);
xr.Dispose();
}
return CompareReader("<p2:child xmlns:p2='p2' />") ? TEST_PASS : TEST_FAIL;
}