This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Flex and the fly likes How to Convert XML to Key/Value Pair in flex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to Convert XML to Key/Value Pair in flex" Watch "How to Convert XML to Key/Value Pair in flex" New topic
Author

How to Convert XML to Key/Value Pair in flex

Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61

Hi,

The problem is solved..

Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256
Shouldn't it be (event.result).descendants("schools"); With this you should get all the 'school' nodes, which you loop through and can pluck out individual name and rate.
Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Hi,

I had stored the xml file in server side. So, through result event I got the school nodes only. If there is any other way (other than result event) then please inform.
Praveen Kumar M K
Ranch Hand

Joined: Jul 03, 2011
Posts: 256
From your code I thought that you were actually getting a schools node rather than a school node...Other than result event, I don't know an other way to fetch data...
Booma Devi
Ranch Hand

Joined: Nov 02, 2011
Posts: 61
Thanks praveen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Convert XML to Key/Value Pair in flex
 
Similar Threads
String manipulation
Difference in HQL and Criteria
Response xml in Apache CXF using JAX-RS
How do you update a collection if some exist and some are new?
How to link existing record from database table in ManyToMany Uni-directional relationship