2 Replies Latest reply on Oct 12, 2007 4:38 PM by eleeana

    getElementsByTagName Trouble

      I am somewhat new to coldfusion and am making a script that will read RSS docs and grab all of the item elements without having to worry about which version of RSS the doc is. I am trying to use the getElementsByTagName function to accomplish this.

      <cfset items=myXMLDoc.getElementsByTagName("item")>

      This is creating a collection object which I am attempting to loop through with

      <cfloop collection="#items#" item="thisItem">

      What do I need to do to actually output the contents of each item, anything I have tried results in outputting the size of the collection (items[thisItem]).

      Any help is appreciated.