Type Reason System.Xml.XmlException The node is not an EndElement node or an error occurred while parsing the XML.
This method calls the XmlReader.MoveToContent method, which determines whether the current node can contain content and, if not, moves the reader to the next content node or the end of the input stream. The node the reader ends up positioned on is checked to determine if it is an EndElement node. If so, the node is read and the reader is moved to the next node.