Vivek
Vivek

Reputation: 1461

Flex + Access XML Content

I have a structure like

This is what

data.data = <node classid="1" label="Teacher" Addr="#1, CP"/>   

How can I access the content, i tried

  1. [email protected]
  2. data.data.node.label
  3. data.data.label

Any help!!

Upvotes: 0

Views: 134

Answers (2)

Vivek
Vivek

Reputation: 1461

Thanks for all your comments, there was an issue with the data I was assigning to the data provider, got it resolved.

Upvotes: 0

Umesh
Umesh

Reputation: 1242

try

data.data.@classid

data.data.@label

You need to use @ to get XML data values.

Read this article for more info.

Upvotes: 1

Related Questions