Hey how can i access the attribute of node if there are more than one node with same name in a xml.
I know how to access a attribute of node,
xmlDoc.SelectSingleNode(“/Tiles/Tile/@count”).Value)
but what it do if there are more that one Tile in Tiles
well i find out by myself.
tileList = xmlDoc.GetElementsByTagName("Tile");
foreach(XmlNode tile in tileList) {
name = tile.Attributes["name"].Value;
size = tile.Attributes["size"].Value;
maxCount = int.Parse(tile.Attributes["count"].Value);`
}