public int pi_2() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("Root"); w.WriteProcessingInstruction("test", null); w.WriteEndElement(); } return CompareReader("<Root><?test?></Root>") ? TEST_PASS : TEST_FAIL; }