We help IT Professionals succeed at work.

Accessing attributes in XML data passed as ArrayCollection

dtivmk
dtivmk asked
on
584 Views
Last Modified: 2012-08-14
Hi,
If I have an XML list like this :

<?xml version="1.0"?>
<catalog>
 <clip desc="desc1">
 <title>check</title>
 </clip>
 <clip desc="desc2">
 <title>check2</title>
 </clip>
</catalog>

and I want to use it as a dataprovider to some tilelist, like this :
photoFeed = event.result.catalog.clip as ArrayCollection;

Then, if I want to access the attribute "desc" of clip,(inside
the datarenderer)
how do I do it?

<mx:TextArea text=????>
if I wanted the <title> part,
I could have done text="{data.title}"
but, what for the attribute "desc"?
Why is there no documentation for this?

I can do the following inside some actionscript code :
t.text = data["desc"];

but how do I do it inside mxml?

I also want to know, what actually happens, when
some XML data is passed as ArrayCollection to a
datarenderer? How does the ArrayCollection look like
if the input XML has child nodes(which may again
have attributes) and attributes
converted to the arraycollection.
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I have not looked at the solution yet, but am in a hurry since too many of my questions
are open and the account would be suspended if I don't take an action.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.