Writes out a processing instruction with a space between the name and text as follows: <?name text?>.
[Visual Basic] MustOverride Public Sub WriteProcessingInstruction( _ ByVal name As String, _ ByVal text As String _ ) [C#] public abstract void WriteProcessingInstruction( string name, string text ); [C++] public: virtual void WriteProcessingInstruction( String* name, String* text ) = 0; [JScript] public abstract 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. |
XmlWriter Class | XmlWriter Members | System.NewXml Namespace