xmlGetNodeType

Determines the type of an XML document object node.

xmlGetNodeType(xmlNode) → returns string

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>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub