> > 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. 
>
> Yes use xpath and turn it into an array and use ArrayLen().

If I'm reading the question correctly, you don't need to use XPath to turn
it into an array; CF does that automatically for you. All you need to do is
use ArrayLen(ItemLookupResponse.Items.Item.Tracks.Disc) to find out how many
discs there are.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:249136
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