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!

XmlContext.CreatePI

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;

Parameters

name
The name of the processing instruction. The name must start with a '?' character.
text
The text of the processing instruction. The text can be any string of characters not containing the sequence "?>".

Return Value

An XmlPI instance with the given name and text.

Exceptions

Exception Type Condition
ArgumentException If name does not start with a '?' character or if text contains the character sequence "?>".

See Also

XmlContext Class | XmlContext Members | System.Xml Namespace