private void LoadElements(System.Xml.XmlReader reader)
{
while (reader.NodeType != XmlNodeType.EndElement)
{
switch (reader.LocalName)
{
case "neighbourhood":
Neighbourhood = new Place();
((IFlickrParsable)Neighbourhood).Load(reader);
break;
case "locality":
Locality = new Place();
((IFlickrParsable)Locality).Load(reader);
break;
case "county":
County = new Place();
((IFlickrParsable)County).Load(reader);
break;
case "region":
Region = new Place();
((IFlickrParsable)Region).Load(reader);
break;
case "country":
Country = new Place();
((IFlickrParsable)Country).Load(reader);
break;
case "shapedata":
ShapeData = new ShapeData();
((IFlickrParsable)ShapeData).Load(reader);
break;
default:
UtilityMethods.CheckParsingException(reader);
reader.Skip();
break;
}
}
reader.Read();
}