<cfset xmlRockStars=XMLParse(ExpandPath("RockStars.xml"))>
  <cfset arrRockStars=xmlRockStars.rockstars.XmlChildren>
  <html>
  <head>
  <title>XmlChildPos()</title>
  </head>
  <body>
  <h1>XmlChildPos()</h1>
  <cfoutput>
   <ol>
   <cfloop index="i" from="1" to="#ArrayLen(arrRockStars)#">
    <li>#arrRockStars[i]#</li>
   </cfloop>
   </ol>
      <cfset notARockStarPos = XmlChildPos(xmlRockStars.rockstars,"beatle",3)>
      <div style="color:red; font-size:larger;">
    The person at position #notARockStarPos# is not a rock star and will be deleted.
   </div>
      <cfset ArrayDeleteAt(arrRockStars,notARockStarPos)>
      <ol>
   <cfloop index="i" from="1" to="#ArrayLen(arrRockStars)#">
    <li>#arrRockStars[i]#</li>
   </cfloop>
   </ol>
  </cfoutput>
  </body>
  </html>