xmlGetNodeType

Determines the type of an XML document object node.

xmlGetNodeType(xmlNode) → returns string

xmlGetNodeType Argument Reference

xmlNode xml
Required

An XML DOM object node.

Links more information about xmlGetNodeType

Examples
Sample code invoking the xmlGetNodeType function

A string identifying the XML node type.

<cfxml variable="xmlobject1">
	<notes>
		<note>
			<to>Alice</to>
			<from>Bob</from>
			<heading>Reminder</heading>
			<body>Here is the message you requested.</body>
		</note>
		<author>
			<first>John</first>
			<last>Doe</last>
		</author>
	</notes>
</cfxml> 
<cfoutput>
	 xmlobject:#XMLGetNodeType(xmlobject1)#
	 xmlRoot:#XMLGetNodeType(xmlobject1.xmlRoot)#
</cfoutput>

Fork me on GitHub