I use the following to test the existence of xml elements
<cfif structKeyExists(aTDWDoc.atdw_data_results.product_distribution[i].product_record,'max_star_rating')>
<!--- Do your stuff to the max star rating key in here --->
</cfif>
The above works fine however to add a little more complexity
This retrieves
the necessary data information from the xml document indicating that the syntax
is correct
This pulls the
data from the 4th row of the element within the xml
document
<cfset
prodn = QuerySetCell(get_product,
"comment_4",aTDWDoc.atdw_data_results.product_distribution[i].product_comment.row[4].comment_text.XmlText,
i)>
this pulls the
data from the 5th row of the element
<cfset
prodn = QuerySetCell(get_product,
"comment_5",aTDWDoc.atdw_data_results.product_distribution[i].product_comment.row[5].comment_text.XmlText,
i)>
however I am
having difficulty determining the correct syntax to test the existence of
whether the rows even exist from one record set to the next so I am assuming I
use the same as your suggested structkeyexists as you indicated above however
what modifications do I need to make to it to test for the existence of rows
within the element
I hope I am
making sense and look forward to your reply
Kind Regards
Claude
Raiola (Director)
AustralianAccommodation.com Pty. Ltd.
Mobile: 0414 228
948
Fax: 07 3319 6444
Websites:
www.AustralianAccommodation.com
www.AccommodationNewZealand.com
www.HospitalityPurchasing.net
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
