> The closet I've gotten is this. <cfset newXML = > XmlSearch(masterXML,"/root/article[type = 'Event']")>. But, this returns > an Array of XML structures, when what I really want is a single XML > structure. > > newXML[1]= > <article> > <type>Event</type> > </article> > newXML[2]= > <article> > <type>Event</type> > </article> > > What relatively basic concept am I not getting here?
Executing an XPath expression on a XML structure with XmlSearch always return the CFML equivalent of a DOM "NodeList". The NodeList may be empty or contain only one node but it's still a NodeList, so in CFML you get an array of XML elements. ---------------------------- Massimo Foti Certified Dreamweaver MX Developer Certified Advanced ColdFusion MX Developer http://www.massimocorner.com/ ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com