NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlWriter.WriteProcessingInstruction

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
);

Parameters

name
Name of the processing instruction.
text
[To be supplied.]

Exceptions

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.

See Also

XmlWriter Class | XmlWriter Members | System.NewXml Namespace