Hi people, I'm hoping to pick your brains on the "best way" of reading an XML file in SL 2. J
I've seen a few different approaches floating around on the web and I've listed some below. * Add the XML document as an Embedded resource in the Silverlight project and then use XDocument.Load * Add the XML document to the Silverlight project and use the Webclient class, with a relative path from the ClientBin directory. * Add the XML document to the Web project calling the Silverlight project and use the HttpWebRequest class with a absolute path to the file. The way I understand it, if you embed the resource it will get downloaded in the .xap file and I guess if it's a small file this could be appropriate? In regards to the two other I don't know if there's a difference but using the HttpWebRequest seems like overkill if you're just reading in a simple file? Basically I was hoping to get some thoughts and pointers on when what approach might be applicable. Cheers, Ola ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net