ho fatto un esempio perchè non riuscivo a capire. Cosi' funziona...

XmlTextReader reader = new XmlTextReader("File.xml");
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element && reader.Name.CompareTo("rect") == 0)
{
string id = reader.GetAttribute("id");
string x = reader.GetAttribute("x");
string y = reader.GetAttribute("y");
}
}