Creates an XmlPI instance in this context.
[Visual Basic] Public Function CreatePI( _ ByVal name As String, _ ByVal text As String _ ) As XmlPI [C#] public XmlPI CreatePI( string name, string text ); [C++] public: XmlPI* CreatePI( String* name, String* text ); [JScript] public function CreatePI( name : String, text : String ) : XmlPI;
An XmlPI instance with the given name and text.
Exception Type | Condition |
---|---|
ArgumentException | If name does not start with a '?' character or if text contains the character sequence "?>". |
XmlContext Class | XmlContext Members | System.Xml Namespace