Writes out a processing instruction with a space between the name and text as follows: <?name text?>.
[Visual Basic] Overrides Public Sub WriteProcessingInstruction( _ ByVal name As String, _ ByVal text As String _ ) [C#] public override void WriteProcessingInstruction( string name, string text ); [C++] public: override void WriteProcessingInstruction( String* name, String* text ); [JScript] public override function WriteProcessingInstruction( name : String, text : String );
Exception Type | Condition |
---|---|
ArgumentException | The text would result in a non-well formed XML document.
The name is "xml". You must use WriteXmlDecl() to write the XML declaration. |
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace