Yes, the function you will need is XMLSearch to return a node array.

On 8/8/06, James Smith <[EMAIL PROTECTED]> wrote:
>
> Sorry, xpath?
>
> > Yes use xpath and turn it into an array and use ArrayLen().
>
> > > I am using Amazons AWS and have a quick XML question.
> > >
> > > One of the returned attributes in the XML is as follows...
> > >
> > > ItemLookupResponse.Items.Item.Tracks.Disc[1].Track[1].XmlText
> > > ItemLookupResponse.Items.Item.Tracks.Disc[1].Track[2].XmlText
> > > ItemLookupResponse.Items.Item.Tracks.Disc[2].Track[1].XmlText
> > > ItemLookupResponse.Items.Item.Tracks.Disc[2].Track[2].XmlText
> > >
> > > Is there any way to know how many discs there are so that I
> > > can loop
> > > over the xml extracting the data.  At present I use a
> > > couple of nested
> > > loops (one for discs and one for tracks) each from 1 to 100 to make
> > > sure nothing can be missed and then use cfcatch to ignore the
> > > inevetable errors, problem is it is then doing 10,000 itterations.
> > >
> > > Ideally I want more like...
> > >
> > > <Cfloop from="1" to="#someFunction()#" index="I">
> > >
> > > Where the function returns the number of children of a
> > > particular node.
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.7/411 - Release Date: 07/08/2006
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249134
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to