Thanks everybody for getting back to me. It will take me a bit to digest and test.....let you know how it comes out.
Thanks again, Justin -----Original Message----- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] OT: XPath() and getting attributes On Feb 3, 2004, at 12:54 PM, Justin Balog wrote: > Would an XPathQueryString look like to find the attributes of an XML > tag? No. XmlSearch() returns "An array of XML object nodes that match the search criteria". An attribute is not an "XML object node" so you have to get the nodes back and then drill into them: > <parent> > <child name="jo"> > <weight value="100lbs"/> > </child> > </parent> I think the following will work: <cfset jo_weights = XmlSearch(xmlDoc,"parent/[EMAIL PROTECTED]'jo']/weight") /> <cfset jo_weight = jo_weights[1].XmlAttributes["value"] /> Regards, Sean ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
