Text Nodes Do Not Always Exist In A ColdFusion XML Document

<!---
	Select all nodes from anywhere in the CodlFusion XML
	document if their text value equals "Blam" or does 
	NOT equal "Blam".
--->
<cfset arrNodes = XmlSearch(
	xmlGirl,
	"//*[ (text() = 'Blam') or (text() != 'Blam') ]"
	) />
 
<!--- Output names of nodes. --->
<cfloop
	index="xmlNode"
	array="#arrNodes#">
 
	#xmlNode.XmlName#<br />
 
</cfloop>

For Cut-and-Paste