<cfxml variable="xmlActors">
<actors>
<actor
name="Sunrise Adams"
dob="14 September 1982"
/>
<actor
name="Briana Banks"
dob="21 May 1978"
/>
<actor
name="Belladonna"
dob=""
/>
<actor
name="Tawny Roberts"
dob=""
/>
<actor
name="Nina Hartley"
dob="11 March 1959"
/>
</actors>
</cfxml>
<cfloop
index="intNodeIndex"
from="1"
to="#ArrayLen( xmlActors.actors.actor )#"
step="1">
<cfset xmlActor = xmlActors.actors.actor[ intNodeIndex ] />
<p>
#xmlActor.XmlAttributes.name#
<cfif (
StructKeyExists( xmlActor.XmlAttributes, "dob" ) AND
Len( xmlActor.XmlAttributes.dob )
)>
(DOB: #xmlActor.XmlAttributes.dob#)
</cfif>
</p>
</cfloop>