This just demonstrates the awe inspiring power of those of you on the list. I swear that I tried both of those ideas, and they did not work....now, after I ask the gurus out there....the code fears the consequences and has obeyed.
Thanks sooooo much, Justin -----Original Message----- From: Samuel Neff [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:54 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Kind of OT - xmlSearch() The search string is just a string like any other--use hash marks. <cfxml variable="x"> <app-config> <app id='NONE'>NONE</app> <app id='BW'>BW</app> <app id='COLOR'>COLOR</app> </app-config> </cfxml> <cfset app = xmlSearch(x, "/app-config/[EMAIL PROTECTED]'COLOR']")> <cfdump var="#app#"> <cfset targetId = "COLOR"> <cfset app = xmlSearch(x, "/app-config/[EMAIL PROTECTED]'#targetId#']")> <cfdump var="#app#"> HTH, Sam ---------------------------------------------- Blog: http://www.rewindlife.com Chart: http://www.blinex.com/products/charting ---------------------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Justin Balog > Sent: Friday, August 01, 2003 6:22 PM > To: '[EMAIL PROTECTED]' > Subject: [CFCDev] Kind of OT - xmlSearch() > > > I am performing an XML search like this > > <CFSET myVar = xmlSearch(myXMLDoc, "/cfapp-config/[EMAIL PROTECTED]'COLOR']"> > > It works fine when the id static, does anybody know a way to make it > dynamic, passed on the appID being passed into my method? Basically, > something along these lines? > > <CFSET myVar = > xmlSearch(myXMLDoc,"/cfapp-config/[EMAIL PROTECTED]"> > > I have tried many different things to get this to work, but it keeps > erroring out? > > I have tired to build the string then DE() in the xmlSearch function. > > Any help would be appreciated. > > Thanks, > > Justin ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
