public int writeNode_XmlReader11()
{
XmlReader xr = CreateReaderIgnoreWS("XmlReader.xml");
while (xr.Read())
{
if (xr.LocalName == "NamespaceNoPrefix")
{
xr.Read();
xr.Read();
break;
}
}
using (XmlWriter w = CreateWriter())
{
w.WriteNode(xr, false);
}
xr.Dispose();
return CompareReader("<node1 xmlns=\"foo\"></node1>") ? TEST_PASS : TEST_FAIL;
}