<!--- Loop over the array using a ColdFusion's new Array iteration loop. By using this, we are given a pointer to the underlying Java Xerces node object which can only be accessed using the underlying Java methods. ---> <cfloop index="XmlActor" array="#xmlActors.actors.actor#"> <!--- Output the data. ---> <p> #xmlActor.GetAttribute( JavaCast( "string", "name" ) )# <!--- Check to see if date of birth is defined. ---> <cfif ( xmlActor.HasAttribute( JavaCast( "string", "dob" ) ) AND Len( xmlActor.GetAttribute( JavaCast( "string", "dob" ) ) ) )> (DOB: #xmlActor.GetAttribute( JavaCast( "string", "dob" ) )#) </cfif> </p> </cfloop>