public int xmlSpace_4()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root");
w.WriteAttributeString("xml", "space", null, "preserve");
w.WriteStartElement("node", null);
CError.Compare(w.XmlSpace, XmlSpace.Preserve, "Error");
w.WriteEndElement();
w.WriteEndElement();
}
return TEST_PASS;
}