I'm trying to make TreeView from XML file but there is an error after validation (in bold line): "not an array or indexer".
dim NavBarPath as string;
dim xDoc as System.Xml.XmlDocument;
dim fs as System.IO.FileStream;
dim xRoot as System.Xml.XmlElement;
dim xnode as System.Xml.XmlNode;
dim rootnode as System.Windows.Forms.TreeNode;
NavBarPath = InTouch:InTAppDir + "NavBar.xml";
xDoc = new System.Xml.XmlDocument();
fs = new System.IO.FileStream(NavBarPath, FileMode.Open, FileAccess.Read);
xDoc.Load(fs);
xRoot = xDoc.DocumentElement;
for each xnode in xRoot
rootnode = new System.Windows.Forms.TreeNode(xnode.Attributes["Name"].Value);
...
next;