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!

XmlReader.IsStartTag (String, String)

Tests if the current content node is a start tag with a given name and namespace URI.

[Visual Basic]
Overloads Public Function IsStartTag( _
   ByVal name As String, _
   ByVal ns As String _
) As Boolean
[C#]
public bool IsStartTag(
   string name,
   string ns
);
[C++]
public: bool IsStartTag(
   String* name,
   String* ns
);
[JScript]
public function IsStartTag(
   name : String,
   ns : String
) : Boolean;

Parameters

name
The name of the start tag for which to test.
ns
The namespace URI of the start tag for which to test.

Return Value

true if the resulting node is a start tag with the given name and namespace URI, false otherwise.

Exceptions

Exception Type Condition
XmlException If incorrect XML is encountered in the input stream.

Remarks

This method skips whitespace, comments, and processing instructions until the reader is positioned on a content node. The method then tests if the current node is a start tag with the given name and namespace URI.

When multiple calls are made to this method with the same arguments, it is more efficient to obtain an XmlIdent once and then repeatedly call the IsStartTag method for that identifier.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.IsStartTag Overload List | IsStartTag | IsStartTag | IsStartTag | CheckStartTag | MoveToContent