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 6970311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:41:37+00:00 2026-05-27T16:41:37+00:00

I want to load data from an XML file and assign that data to

  • 0

I want to load data from an XML file and assign that data to variables in my Android app.

After doing some research on the various XML parsers available to Android, I figure the best parser method to use would be SAX.

I’ve read through a bunch of posts about reading XML from Android however I can’t find one that uses a local file in the ‘res’ folder.

All the tutorials I’ve found are loading the XML file via a URL.

Is there a way to load the XML from the res folder?

Thanks

  • 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-27T16:41:38+00:00Added an answer on May 27, 2026 at 4:41 pm

    You could look at my past question regarding the same issue: How to use DOM to read XML within Android applications correctly?

    From my experience I’ve copied the xml file into the res/raw folder and was able to read it correctly there using res.openRawResource(R.raw.the_id). You can load it from the res/layout folder but some of the information when you parse it may be in binary, which wouldn’t be ideal.

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

Sidebar

Related Questions

i have a XML File i want to insert data from that XML file
I want to load some data from mysql into my cocoa application view before
I want to load some images into my application from the file system. There's
I'm trying to load data from xml-file with TinyXML (c++). int height = rootElem->attrib<int>(height,
I have an array I load with lots of data from an xml file.
Currently I am downloading and parsing my data from an XML file that is
I am creating an xml file dynamiclly with php after I read data from
I am using jQuery load, to load some data from an external file like
I am trying to load an XML file from res/raw folder in my Android
In my project i need to load aml data from internet and after that

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.