You would be well served to learn how to specify Xml
location paths[
^] for use in the SelectNodes method.
This example will return a XMLNodeList of all XmlElements in the document.
XmlDocument doc = new XmlDocument();
doc.LoadXml("test1.xml");
XmlNodeList nodes = doc.DocumentElement.SelectNodes("//*");
If you must have an Array, then:
XmlElement[] elementarray = nodes.Cast<XmlElement>().ToArray();