Click here to Skip to main content
15,920,704 members
Please Sign up or sign in to vote.
4.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:
Exception {"The ':' character, hexadecimal value 0x3A, cannot be included in a name."} System.Exception {System.Xml.XmlException}

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.

XElement xmlScan = XElement.Parse(e.Result);

                   listBox1.ItemsSource = from channel in xmlScan.Descendants("item")
                                          select new ScanItem
                                              title = channel.Element("title").Value,
                                              description = strip2(strip(channel.Element("description").Value)),
                                              georss = channel.Element("gesorss:point").Value,

1 solution

Look at this SO[^] entry.
Share this answer
Espen Harlinn 20-Feb-11 8:44am    
Good one, my 5
Tarun.K.S 21-Feb-11 5:06am    
Good answer! +5

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