XmlNode.Element (gb.xml)

Property Read Element As XmlElement

If the current node is an Element, then this proprerty returns it. Otherwise, it returns NULL .

If you want to know it the current node is an element, you should use the IsElement property instead.