Xmlsearch() returns an array of xml elements which are the results. Make sure you weren't trying to output it like this:
#XMLSearch ( mydoc, "/nitf/head/[EMAIL PROTECTED]'ap-online-code']" )# Dump it with cfdump if you want to see what is in it. You will need to iterate over the results or do [1] to get the first element returned and then you will have a struct to dig through... ~Brad -----Original Message----- From: Jonathan Mauney [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 4:00 PM To: CF-Talk Subject: Re: XML Parsing in CF Help This didn't work either (after changing outer single quotes to double): "Complex object types cannot be converted to simple values." >If you're looking specifically for that element, I'd use >XPath/XMLSearch(). Try this: > >XMLSearch ( mydoc, '/nitf/head/[EMAIL PROTECTED]'ap-online-code']' ) > >On 5/9/06, Ian Skinner <[EMAIL PROTECTED]> wrote: >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240024 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

