You might also be interested in the following blog entries on using XPath with CFMX.
http://cfguru.daemon.com.au/archives/000038.html#000038 http://blog.daemon.com.au/archives/000040.html Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 > -----Original Message----- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 05, 2001 10:15 PM > To: CF-Talk > Subject: RE: xmlSearch() > > got it too. > and heck, it was only nested 7 levels down ;) > > later. > tw > > -----Original Message----- > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 05, 2001 10:12 PM > To: CF-Talk > Subject: RE: xmlSearch() > > > makes perfect sense. > thanks matty. > > tony > > -----Original Message----- > From: Matt Liotta [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 10:03 PM > To: CF-Talk > Subject: RE: xmlSearch() > > > XPath expects the expression to include the complete path needed to > traverse the XML document's tree in order to find the node in question. > For example, suppose you had the following XML document. > > <a><b><c>foobar</c></b></a> > > The correct XPath expression for finding the node named "c" would be as > follows. > > /a/b/c > > The above is based on the fact that "c" is nested inside of "b" and "b" > is nested inside of "a". For another example, suppose the you had the > following XML document. > > <a><b /><c>foobar</c></a> > > The correct XPath expression for finding the node named "c" would be as > follows. > > /a/c > > As you can see from the above expression "c" is no longer nested inside > of "b" so the expression reflects that. > > Matt Liotta > President & CEO > Montara Software, Inc. > http://www.montarasoftware.com/ > 888-408-0900 x901 > > > -----Original Message----- > > From: Tony Weeg [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, December 05, 2001 9:46 PM > > To: CF-Talk > > Subject: xmlSearch() > > > > <impact_text>Your credit score could improve by +25 points (from 610 > to > > 635).</impact_text> > > > > if i wanted to find that node above, and replace everything from the ( > > to the ) > > why does this not return something? > > > > i have a well formatted xml doc, that is cfsavecontent'd into a > variable > > called myXmlString > > > > i know what i have isnt going to do the replace, but it could find the > > node right? > > ill write the find/replace later...i just wanted to work on this > part... > > > > <cfset myXMLdoc = "#xmlParse(myXmlString)#"> > > <cfset selectedElements = #xmlSearch(myXMLdoc,"impact_text")#> > > > > <cfdump var="#selectedElements#"> > > > > thanks. > > > > ...tony > > > > tony weeg > > [EMAIL PROTECTED] > > www.revolutionwebdesign.com > > rEvOlUtIoN wEb DeSiGn > > 410.334.6331 > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

