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();
Exception Type | Condition |
---|---|
XmlException | If incorrect XML is encountered in the input stream. |
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.
XmlReader Class | XmlReader Members | System.Xml Namespace | Read | ReadNode