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

  • Home
  • SEARCH
  • 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 8272289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:05:07+00:00 2026-06-08T07:05:07+00:00

I have an XML that i retrieve from a call so all values are

  • 0

I have an XML that i retrieve from a call so all values are dynamic exept for the labels of the nodes(so I know that there is a appname that I have to display). I display appname in a ComboBox, then I need to get another value from another label in the same node, my xml has structure like so

<root>
  <item>
    <name>Hello</name>
    <version>World</version>
  </item>
  <item>
    <name>See_you</name>
    <version>soon</version>
  </item>
</root>

Now, I have a flex mx:ComboBox that has dynamic values, the user selects the label , for example Hello, and I need to find the corresponding node value, and the child value, so i can return World.

I can define the labels of the ComboBox via dataProvider, so it’s done.
Now I cannot get the selected value via trace(event.currentTarget.selectedItem.@label); (I have on change handler on the ComboBox) = that’s 1 problem;

Second problem is how can I get a node value from an xml object if I have another node value in the same parent node( in this case)?

I’m stuck on this and running out of time, please help.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
i have it like this in my mxml

<mx:AddChild relativeTo="{VGroup}">
<mx:ComboBox id="AppListBox" change="AppListBox_changeHandler(Event.CHANGE)"/>
</mx:AddChild>

then i provide data, when I have it in my script, like so

AppListBox.dataProvider = appxml.item.appname.text();

appxml – is a that xml

Then I try to get the value of selected item, i tried like that:

protected function AppListBox_changeHandler(event:Event):void
{
trace(event.currentTarget.selectedItem.label);
trace(event.currentTarget.selectedItem.data);
trace(event.currentTarget.selectedItem.@label);
trace(AppListBox.selectedItem.label);
trace(AppListBox.selectedItem.@label);
trace(AppListBox.selectedItem.name);

it does not display anything. not even error

  • 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-06-08T07:05:10+00:00Added an answer on June 8, 2026 at 7:05 am

    This all works fine for me.

    [Bindable]
    public var myXML:XML
    
    private function init( ):void{
      this.myXML = new XML(     
      <root>
        <item>
          <name>Hello</name>
          <version>World</version>
        </item>
        <item>
          <name>See_you</name>
          <version>soon</version>
        </item>
      </root>
      );
    }
    
    private function appListBox_changeHandler(event:Event):void{
      trace( 'index   --' + appListBox.selectedIndex )
      trace( 'label   --' + appListBox.selectedLabel )
      trace( 'version --' + XML(appListBox.selectedItem).version )
      trace( 'item    --' + appListBox.selectedItem )
    }
    
    
    <comboBox:ExtendedComboBox 
      id="appListBox"
      dataProvider="{this.myXML.item}"
      labelField="name"
      itemRenderer="mx.controls.Label"
      change="appListBox_changeHandler(event)"
    />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to retrieve data from restful webservice that returns xml. I'm using phonegap.
In the past, I have created a component to pass and retrieve values to/from
I'm running into difficulty retrieving values from a service call that is supposed to
I have an XML feed that I've retrieved via httpwebrequest, and I'm having problems
I have XML that looks like this: <Parameter Name=parameter name Value=parameter value /> which
I have XML that looks like this: <ROW ref=0005631 type=04 line=1 value=Australia/> <ROW ref=0005631
I have XML tag that has the content which is HTML document. <xml-tag> <!--
I have some XML that is structured like this: <whatson> <productions> <production> <category>Film</category> </production>
I have an XML that goes like this: <?xml version=1.0 encoding=utf-8 ?> <colors> <color
I have a xml that has so many elements and most of that contain

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.