>- see footer for list info -< Tim, Perfect, exactly what I found when I looked into it a bit more detail, next time I'll read the manual properly.
Cheers Gene -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair Sent: Wednesday, October 05, 2005 10:07 AM To: Coldfusion Development Subject: RE: [CF-Dev] Searching XML Document Structures >- see footer for list info -< > One more question, the array returns the XmlAttributes > of the Child is there a quick and simple way to grab the > contents of the XmlText Attribute. You can treat the returned information as an array of structures, so something like this will do the job: <cfxml variable="xmldoc"> <myroot> <status plink="1">Joy!</status> </myroot> </cfxml> <cfscript> node = xmlsearch(xmldoc, "//status"); text = node[1].XmlText; // text => "Joy!" attr = node[1].XmlAttributes['plink']; // attr => 1 </cfscript> Any good? Tim. -- ------------------------------------------------------- Badpen Tech - CF and web-tech: http://tech.badpen.com/ ------------------------------------------------------- RAWNET LTD - independent digital media agency "We are big, we are funny and we are clever!" New site launched at http://www.rawnet.com/ ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
