The code below will read the data in the castlesandSTUFF.xml file. I had to put my own xml file on my server because there was a security error I didn't feel like debugging when using the xml link you provided. Plus there was an error caused by the ":" colon symbol in the lat and long tag of the xml file. the xml reader didn't like it for some reason. But from the code below, you should be able to get started.
public MainPage()
{
InitializeComponent();
callread();
}
private void callread()
{
WebClient wc = new WebClient();
wc.OpenReadAsync(new Uri(" INSERT YOUR XML LINK HERE", UriKind.Absolute));
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
}
private void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
Stream s = e.Result;
XDocument xd = XDocument.Load(s);
IEnumerable<XElement> ie = xd.Elements();
foreach (XElement el in ie)
{
IEnumerable<XElement> re = el.Elements();
foreach (XElement rootElm in re)
{
IEnumerable<XElement> items = rootElm.Elements();
foreach (XElement item in items)
{
XElement title = item.Element("title");
XElement desc = item.Element("description");
XElement geolat = item.Element("geolat");
XElement geolong = item.Element("geolong");
MessageBox.Show(title.Value.ToString());
//CREATE A POINT HERE AND ADD IT TO A GRAPHIC LAYER IN YOUR MAP
}
}
}
}
Once you can read the xml file you can create graphic points and add them to a graphic layer. I didn't include that part because I don't want to rob you of the fun of figuring it out on your own!Hope it helped some,Mike