Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6819797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:20:56+00:00 2026-05-26T21:20:56+00:00

I iwant to know the best way to read an xml file and save

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:20:57+00:00Added an answer on May 26, 2026 at 9:20 pm

    First you get the links from your XML file:

        // using local XML file for demonstration
        StreamResourceInfo info = Application.GetResourceStream(new Uri("xml_example.xml", UriKind.Relative));
    
        XElement xml = XElement.Load(info.Stream);
        // iterate media files
        foreach (XElement element in xml.Element("graphics").Elements("file"))
        {   
            // pick a video
            if (element.Attribute("type").Value == "video")
            {
                // demoing that we found something
                MessageBox.Show(element.Element("fileurl").Value);
    
                // here goes the real action
                DoSomethingUsefulWithURL(element.Element("fileurl").Value); 
            }
    
        }
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for the best way to read a CSV file line by
I'd like to know what's the best way (read most elegant) to have a
I am developing an android app and I want to know the best way
i want to know which parsing method is best to use among Simple XML
What would be the best way to read an Int64BE from a node.js buffer
I've got an XML file I want to parse with python. What is best
I need help figuring out the best, cross-browser compatible way to SAVE user input
I want to read all XML contents from a file. The code below only
I am trying to figure out the best way to parse this comma delimited
What is the best way to read and/or set Internet Explorer options from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.