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