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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:43:13+00:00 2026-05-13T23:43:13+00:00

I want to load key/values configuration pairs stored in XML file. To bind a

  • 0

I want to load key/values configuration pairs stored in XML file. To bind a collection of data i know i need to use the ArrayList class, but the problem is that i want to be able to bind the loaded values using their corresponding keys and not by their indexes in the ArrayList object.

For example i want to be able to do this :

<mx:Text id="errorText" text="{Config.params['someKey']}" />

instead of :

<mx:Text id="errorText" text="{Config.params[0]}" />

where Config.params is ArrayList (obviously i couldn’t use ArrayList since it doesn’t allow selecting a value by key)

So the question is how to bind the key/value pairs loaded form XML. I don’t want to go manually set variables, i want to bind them so when they are loaded the are set automatically. Did anyone had to do something like that ?

  • 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-13T23:43:13+00:00Added an answer on May 13, 2026 at 11:43 pm

    I would suggest using a Dictionary in place of your ArrayList. If I understand your question correctly this would enable you to do exactly what you wrote in the first snippet:

    <mx:Text id="errorText" text="{Config.params['someKey']}" />
    

    Good luck!

    ====== Edit ======

    Here’s an example of using e4x in binding expressions: binding with e4x

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

Sidebar

Related Questions

I have a list of key/value pairs of configuration values I want to store
I need to visualize data for my trac Plugin. Therefore I want to use
I want to load the data into session so that when the next button
I want to load some images into my application from the file system. There's
I want to load some data from mysql into my cocoa application view before
I've extracted the setting names and their respective values out of a configuration file
For my program I want to read a key from a properties file and
I have some data stored in a DB that I want to process. DB
at first sorry my bad English I want load model in my plugin controller
I want to load one or more DLLs dynamically so that they run with

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.