Recursive ColdFusion Custom Tag Example

<!---
	Create an XML document that has some information
	for the very beautiful and highly delicious Maria Bello.
	By using an XML document, we will be creating an
	eaily navigatable document for our recursive tag.
--->
<cfxml variable="xmlMovies">
 
	<movies>
		<movie>
			<name>
				Flicka
			</name>
			<releasedate>
				2006
			</releasedate>
			<imdb>
				http://imdb.com/title/tt0434215/
			</imdb>
		</movie>
		<movie>
			<name>
				Thank You For Smoking
			</name>
			<releasedate>
				2005
			</releasedate>
			<imdb>
				http://imdb.com/title/tt0427944/
			</imdb>
		</movie>
		<movie>
			<name>
				A History Of Violence
			</name>
			<releasedate>
				2005
			</releasedate>
			<imdb>
				http://imdb.com/title/tt0399146/
			</imdb>
		</movie>
	</movies>
 
</cfxml>
 
 
<!---
	Output the XML nodes in our movies document. We are
	going to pass in the primary XML document and let
	the tag recursively call itself to display the rest
	of the nested nodes.
--->
<cfmodule
	template="./showxml.cfm"
	xml="#xmlMovies#"
	/>

For Cut-and-Paste