public int attribute_28()
{
XmlWriterSettings s = new XmlWriterSettings();
s.NewLineHandling = NewLineHandling.Replace;
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("root");
w.WriteAttributeString("a", "|\x0D\x0A|");
w.WriteElementString("foo", "|\x0D\x0A|");
w.WriteEndElement();
}
return CompareReader("<root a=\"|
|\"><foo>|\x0D\x0A|</foo></root>") ? TEST_PASS : TEST_FAIL;
}