SerializationUtilities.SkipToNextElement(XmlReader) Method

Definition

Assign the reader to the start tag of the next element. This is usually used after a ReaderInnerXml() call, where the reader will be positioned after the close tag of the previous element. Since there may be whitespace or comments between the two elements, the reader may not be moved onto the start tag of the next element automatically. If the reader is already on a start tag, this method will do nothing. The method will also stop if an end tag is encountered, which means there's no more siblings and the end of the parent element is reached.

public:
 static void SkipToNextElement(System::Xml::XmlReader ^ reader);
public static void SkipToNextElement (System.Xml.XmlReader reader);
static member SkipToNextElement : System.Xml.XmlReader -> unit
Public Shared Sub SkipToNextElement (reader As XmlReader)

Parameters

reader
XmlReader

The reader to skip.

Applies to