I would recommend using an xpath.

It may or may not make your life easier.  :)

~Brad

-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 3:31 PM
To: CF-Talk
Subject: RE: selecting XmlAttribute of child node

34.   <!--- HERE IS WHER I LOSE IT! NEED HELP WITH THE CORRECT SYNTAX
---> 
35.    <CFSET ImgScr =  cnThisAlbum.XmlChildren.XmlAttributes["src"]>

Which child do you want?  XmlChildren is the array of all the children
<img> nodes.

You would need something like:
cnThisAlbum.XmlChildren[1].XmlAttributes["src"] to get the src attribute
of the first img child node.  

If you want all of them, you will need a loop or something.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237137
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to