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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:42:08+00:00 2026-05-25T12:42:08+00:00

I am trying to create an image gallery : <card> <product catalog=Thread Works> <name>AK

  • 0

I am trying to create an image gallery :

<card>
 <product catalog="Thread Works">
    <name>AK E001</name>    
    <price>45</price>
    <path>assets\cards\AK_E001.jpg</path>
 </product>

 <product catalog="Paper Work">
     <name>AK E001</name>   
    <price>45</price>
    <path>assets\cards\AK_PP003.jpg</path>
 </product>

<product catalog="Thread Works">
    <name>AK E002</name>    
    <price>50</price>
    <path>assets\cards\AK_E002.jpg</path>
 </product>

I can access the attribute, but if i am selecting “Thread Works” i want only access
<product catalog="Thread Works">
with children node , for additem to array collection any Help 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-25T12:42:08+00:00Added an answer on May 25, 2026 at 12:42 pm
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.events.FlexEvent;
                private var mainXML:XML = <card>
                                             <product catalog="Thread Works">
                                                <name>AK E001</name>    
                                                <price>45</price>
                                                <path>assets\cards\AK_E001.jpg</path>
                                             </product>
    
                                             <product catalog="Paper Work">
                                                 <name>AK E001</name>   
                                                <price>45</price>
                                                <path>assets\cards\AK_PP003.jpg</path>
                                             </product>
    
                                            <product catalog="Thread Works">
                                                <name>AK E002</name>    
                                                <price>50</price>
                                                <path>assets\cards\AK_E002.jpg</path>
                                             </product>
                                            </card>;
    
                protected function fetchHandler(event:MouseEvent):void
                {
                    var productAC:ArrayCollection = new ArrayCollection();
                    var productList:XMLList = mainXML.product.(@catalog == attributeNameTxt.text);
                    for each(var item:XML in productList)
                    {
                        productAC.addItem({name:String(item.name[0]),
                            price:String(item.price[0]),
                            path:String(item.path[0])});
                    }
                    trace(productAC);
                }
    
            ]]>
        </fx:Script>
        <s:layout>
            <s:HorizontalLayout/>
        </s:layout>
        <s:TextInput id="attributeNameTxt" text="Thread Works"/>
        <s:Button click="fetchHandler(event);"/>
    </s:WindowedApplication>
    
    IMPORTANT CODE : 
    =================
    mainXML.product.(@catalog == "Thread Works")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple image gallery, showing 16 images per page. I'm
I'm trying to create an image gallery from an rss feed with the galleryview
I am trying to create an image gallery. To display captions beneath my images
I would like to create a very simple image gallery. I am trying to
I am trying to create an image gallery, I am using numbers instead of
I'm trying to create a simple image gallery where I have one big photo
I am trying to create an image gallery, such as when you click an
So I am trying to create an image gallery. My AIR application accepts files
I'm trying to create an image gallery using Shadowbox plugin(http://www.shadowbox-js.com). So I got a
I am trying to create an image gallery similar to Androids Gallery where it

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.