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!

XmlTextWriter.WriteProcessingInstruction

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

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

XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace