SerializationUtilities.SkipToNextElement(XmlReader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.