locked
using a xml feed in silverlight RRS feed

  • Question

  • I would like to use a xml feed in silverlight and consume it from an external url. Now I guess I could make a WCF service but I assume there is a easier way as I just need to read a xml feed generated elsewhere and poll for it e.g. every 5 minute.

     Is there a easy way to read a external url containing e.g. a list of cities or would the better solution be to create a service. For me this seems like a bit overkill.

     I would appreciate some input

    Wednesday, May 20, 2009 5:35 PM

Answers

  •  yes silverlight can read and process xml files, look here http://www.pay4foss.org/jumpstation/twitternice/ (full source included)

    the key issue you may run into is that the xml file must reside on the same server or a client access policy file must exist to allow the silverlight to retrieve it.

    for the above twitternice, I created a set of xml files for free hosting and a webservice I could run for my own server to get the live twitters.

     

    Thursday, May 21, 2009 5:04 AM