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.SkipNode

Skips a node in the input stream.

[Visual Basic]
Overridable Public Sub SkipNode()
[C#]
public virtual void SkipNode();
[C++]
public: virtual void SkipNode();
[JScript]
public function SkipNode();

Exceptions

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

Remarks

This method corresponds to the ReadNode method, except that it skips the node instead of returning an XmlNode instance.

If the reader is positioned on a start tag, all XML content up to and including the corresponding end tag is skipped.

If the reader is positioned at the beginning of the input stream or on a text, CDATA, comment, processing instruction, or header node, that single node is skipped.

If the reader is positioned on an end tag or at the end of the input stream, no action is performed.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace | Read | ReadNode