Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
I am currently developing a Silverlight WP7 application that downloads an RSS/XML feed from the internet and everytime I run it with the "georss:point" field included I get the following error message:
<br />
Exception	{"The ':' character, hexadecimal value 0x3A, cannot be included in a name."}	System.Exception {System.Xml.XmlException}<br />


Does anyone have any ideas on how you can download XML field that have the ":" in them?

Here is my code which works fine when I put the "georss:point" line as a comment and remove the databinding for that field in the XAML.

private void scanDownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
        
        {
            if (e.Error != null)
                return;
            XElement xmlScan = XElement.Parse(e.Result);
            
            listBox1.ItemsSource = from channel in xmlScan.Descendants("item")
                                   select new ScanItem
                                   {
                                    title = channel.Element("title").Value,
                                    //georss = channel.Element("georss:point").Value,
                                    description = "Position: " + channel.Element("description").Value

        						   };
		}
Posted
Updated 1-Feb-11 7:16am
v2

1 solution

Look at this SO [^]thread. They had exact issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900