I am trying to convert a Spry Ajax site that uses ColdFusion
cfc's as a proxy to return dynamic xml from a Yahoo API. The xml is
quite complex. I wanted to know what the best method is to use to
transverse the XML in Flex components. I am currently developing
the project with RemoteObject calls to the xmlproxy.cfc. Should I
return the xml data as an ArrayCollection or some other method.
Also can you provide a brief example of how to "get to" some of the
deepest xml nodes. Thanks in advance:
Sameple of XML.
**********************************
<?xml version="1.0" encoding="UTF-8"?>
<ProductSearch xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"xmlns="urn:yahoo:prods" xsi:schemaLocation="urn:yahoo:prods
http://api.shopping.yahoo.com/shoppingservice/v2/productsearch.xsd"> <Categories total_subcategories="1">
<SubCategory>
<Title><![CDATA[All Video Games]]></Title>
<Value><![CDATA[All%20Video%20Games]]></Value>
<NumberOfProducts>12</NumberOfProducts>
</SubCategory>
</Categories>
<Refinements>
<Refinement name="Brand" totalvalues="2">
<RefineValue>
<Title><![CDATA[Lucas Arts]]></Title>
<Value><![CDATA[4168-Brand=Lucas%20Arts]]></Value>
<NumberOfProducts>8</NumberOfProducts>
</RefineValue>
</Refinement>
</Refinements>
<Products totalResultsAvailable="13"
firstResultPosition="1" totalResultsReturned="13">
<Product type="Catalog">
<Catalog id="1951016964">
<Url><![CDATA[
http://shopping.yahoo.com/p:Star%20Wars%3A%20Battlefront:1951016964 <ProductName><![CDATA[Star Wars: Battlefront
Xbox]]></ProductName>
<PriceFrom>19.82</PriceFrom>
<PriceTo>19.99</PriceTo>
<Thumbnail>
<Url><![CDATA[
http://f5c.yahoofs.com/shopping/3070415/simg_t_tg19455eodu4jpg85?rm_____DeTmu75OB <Height>85</Height>
<Width>61</Width>
</Thumbnail>
<ListImage>
<Url><![CDATA[
http://f5c.yahoofs.com/shopping/3070415/simg_t_tg19455eodu4jpg85?rm_____DeTmu75OB <Height>85</Height>
<Width>61</Width>
</ListImage>
<GridImage>
<Url><![CDATA[
http://f5c.yahoofs.com/shopping/3070415/simg_t_tg19455eodu4jpg110?rm_____DG7eMrwyb <Height>110</Height>
<Width>79</Width>
</GridImage>
<Description><![CDATA[Star Wars Battlefront gives
you the chance to play as a soldier in intense multiplayer battles
with up to 32 people. Choose your allegiance and pick a soldier
from one of four different armies. Fight on ten legendary planets
and use a variety of weapons and vehicles, including X-wings,
snowspeeders and AT-ST's. Keep your wits about you and victory may
be within your reach. Experience the chaos of battle as you fight
the greatest wars in the Star Wars universe.
]]></Description>
<Summary><![CDATA[ Lucas Arts - Xbox - Shooter -
First-Person Shooter - Release Date: 2004-08-16
]]></Summary>
<UserRating>
<MaxRating>5</MaxRating>
<AverageRating>4.75</AverageRating>
<RatingUrl><![CDATA[
http://shopping.yahoo.com/p:Star%20Wars%3A%20Battlefront%20Xbox:1951016964:page=user-reviews <CreateRatingUrl><![CDATA[
http://shopping.yahoo.com/p:Star%20Wars%3A%20Battlefront%20Xbox:1951016964:page=post-reviews </UserRating>
<SpecificationList>
<Specification>
<SpecificationLabel><![CDATA[Genre]]></SpecificationLabel>
<SpecificationValue><![CDATA[Shooter]]></SpecificationValue>
</Specification>
<Specification>
</Specification>
</SpecificationList>
<Brand><![CDATA[Lucas Arts]]></Brand>
<NumOfStores>7</NumOfStores>
</Catalog>
</Product>
</Products>
</ProductSearch>