XML Output with multiple categories
I am driving myself insane trying to get this to output and I can't seem to find much on the internet that is helpful. Sometimes there is 1 category and sometimes there could be 2.
For example:
<Article>
<Heading>Study: Ban on cell phone use hasn't reduced accident rate</Heading>
<Date>01/02/2010</Date>
<Contents>Content regarding cell phone use.</Contents>
<Categories>
<Category ID="438024898">General Auto News</Category>
<Category ID="438022448">Electronics</Category>
</Categories>
</Article>
I set myitems with the xml search and can manage to output everything below perfectly, except for the multiple categories.
<cfloop from="1" to="#arrayLen(myItems)#" index="i">
#myItems.Heading.xmltext#
#myItems.Categories.Category.xmltext# this outputs only the first one, but I can not seem to get the second.
</cfloop>
Thanks for any help in advance!!!!
