我想知道读取 xml 文件并将内容保存在 Windows Phone 内存中的最佳方法。
xml 可以在此链接中找到:
http://dl.dropbox.com/u/32613258 /xml_example.xml
xml 文件包含指向视频、图像和声音等多媒体文件的链接。我已经将 xml 文件下载到存储手机中,并且我知道如何读取该文件,但我不知道如何读取内容并将其保存到存储手机中。
我想从内存中读取xml并选择xml中的所有链接,然后将图像、视频和声音下载到内存中。最好的方法是什么?我将文件保存在独立存储中,可以保存在卡内存中吗?
I iwant to know the best way to read an xml file and save the content in a windows phone memory.
The xml is available in this link:
http://dl.dropbox.com/u/32613258/xml_example.xml
The xml file have links to multimedia files like videos, images and sound. I already make the download of the xml file to the memory phone and i know how to read the file, but i don't know how to read the content and save it into the memory phone.
I want to read the xml from the memory and pick all the links in the xml and then download the images, videos and sound into memory. What is the best way to do that? I save the files in isolated storage it's possible save in a card memory?
发布评论
评论(1)
首先,您从 XML 文件中获取链接:
然后按照此博客文章中所述继续下载并播放该文件:“从独立存储下载、存储和播放媒体文件”。您的起点是从 XML 文件中获取的 URL。然后博客中的人就会按照你想要的方式做几乎相同的事情。
First you get the links from your XML file:
And then you proceed with downloading and playing the file as described in this blog post: "Download, Store and Play Media files from Isolated Storage". Your starting point is the URL you got from the XML file. And then the guy from the blog does pretty much the same as you want.