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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:25:40+00:00 2026-05-26T17:25:40+00:00

I am building a Android app in Flash Builder 4.5 using Flex 4.5.1 and

  • 0

I am building a Android app in Flash Builder 4.5 using Flex 4.5.1 and I am having the hardest time using a locally stored (/data/data/app-name/db/pellets) XML file as the DataProvider for a Spark List control. I’ve looked on the net for the past 3 days and have tried a bunch of different ways to get the code working but to no avail.

I have a SkinnablePopUpContainer with a Spark List control (list1) that I’d like to populate with the “name” element in my locally stored XML file (pelletdb.xml) that contains about 170 entries with 6 elements each. The XML looks like this:

<tin>
  <pellet>
    <caliber>0.177</caliber>
    <name>AA Field</name>
    <bc>0.0210</bc>
    <weight>8.400</weight>
    <style>N/A</style>
    <material>Lead</material>
  </pellet>
  <pellet>
    <caliber>0.177</caliber>
    <name>Beeman Bearcub</name>
    <bc>0.0110</bc>
    <weight>8.000</weight>
    <style>N/A</style>
    <material>Lead</material>
  </pellet>
</tin>

When I click on the list1 entry I’d like to populate some Labels. I haven’t been able to get the XML data into an ArrayCollection to be used as the DataProvider for my Spark List control. I know I must be doing something wrong someplace, any help would be greatly appreciated!

  • 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-26T17:25:40+00:00Added an answer on May 26, 2026 at 5:25 pm

    As dataprovider for the List control you need an ilist datatype.
    So you could do something like

    list.dataProvider = new XMLListCollection(xml.children());
    

    You can see a sample on Peter Dehaans great Flex example page:
    Using an XML data provider with the Spark List control in Flex 4

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

Sidebar

Related Questions

im building an android app and i need to save some files locally on
I am building an Android app for webradio. I am using vitamio player that
I'm building an Android app using Eclipse. If I have a single Drawable folder
I'm building an Android app that resizes based on the screen size using different
I am building an Android app using a pile of switch statements to switch
I am building an android app and I have an SQL database stored on
While building the android app using ant am getting the following exception. Couldn't figure
I am building an Android app that parses an RSS feed using SAX parser.
I'm building an android app and I'm currently having trouble retrieving a bitmap from
An Android app I am building requires web authentication for users to make data

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.