Sorry, hit "send" too soon.
<cfset variables.locations = XMLSearch ( variables.parsedDoc,
'//dir_office_atm_locations' ) />
<cfset variables.cLocations = arrayLen ( variables.locations ) />
<cfloop index="iLocation" from="1" to="#variables.cLocations#">
<cfif [pseudocode: the name attribute exists>
<cfset temp = querySetCell ( locquery, "name",
#variables.locations[variables.iLocation].attributes.name#,#variables.iLocation#)
/>
<cfelse>
<cfset temp = querySetCell ( locquery, "name",
'',#variables.iLocation#)
/>
</cfif>
</cfloop>
You'll do the same thing with each attribute. There's no way to make
an attribute exist if it doesn't exist. You're processing code has to
make that adjustment.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:250607
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4