Text Nodes Do Not Always Exist In A ColdFusion XML Document

<!--- 
	Select all nodes from anywhere in the ColdFusion XML 
	document that have a nested text node. 
--->
<cfset arrNodes = XmlSearch(
	xmlGirl,
	"//*[ text() ]"
	) />
 
<!--- Output names of nodes. --->
<cfloop
	index="xmlNode"
	array="#arrNodes#">
 
	#xmlNode.XmlName#<br />
 
</cfloop>

For Cut-and-Paste