Checks that the current content node is an element with the given XmlReader.LocalName and XmlReader.NamespaceURI and advances the reader to the next node.
Type Reason System.Xml.XmlException The node is not an Element node, the XmlReader.LocalName property of the Element node does not equal localname, the XmlReader.NamespaceURI property of the Element node does not equal ns, or an error occurred while parsing the XML.
A call to this method corresponds to a call to XmlReader.IsStartElement followed by a call to XmlReader.Read.