> <cfset myXMLdoc = "#xmlParse(myXmlString)#"> > <cfset selectedElements = #xmlSearch(myXMLdoc,"impact_text")#>
In order to select the "impact_text" element regardless of the hierarchy of the document you have to use a more generic XPath pattern like: <cfset selectedElements = #xmlSearch(myXMLdoc,"//impact_text")#> Just keep in mind that such a generic pattern require much more resources than a specific one that rely on a fixed hierarchy like the examples Matt posted before BTW If you are serious about XML in CF a good understanding of XPath can make your life much easier. I would suggest a small but interesting book fro O'Reilly: XPath and XPointer By John E. Simpson Paperback - 208 pages (August 2002) O'Reilly ISBN: 0596002912 ---------------------------- Massimo Foti Team Macromedia Volunteer for Dreamweaver http://www.macromedia.com/go/team ---------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

