Hello all. I am trying to output the results of a web service. The problem is, the returned data at times has missing values. The values aren't blank, they are completely undefined for certain rows that are returned. Since I am the mercy of the web service (they have not listened to my inquiries w/regards to this), I need to find a work around with CF. I've tried using cfparam and isDefined with no luck. Can anyone help. Is this a case of testing an array's elements existence? Thanks, Che.
My simplified code is below and screen shots of the inconsistent XML can be viewed by following the links. --- start simplified code --- <cfinvoke webservice="http://webservice.allposters.com/ProductInformationService.asmx? WSDL" method="getProductInformation" returnvariable="theData"> <cfinvokeargument name="APCSearchXml" value="#theXMLData#"/> </cfinvoke> <cfset xmlContent = XMLParse(trim(theData)) /> <cfloop from="1" to="#arrayLen(xmlContent.APC_Search_Results.Search_Result.Products.ProductIn formation)#" index="i"> <cfoutput>productLink = #xmlContent.APC_Search_Results.Search_Result.Products.ProductInformation[i]. productLink.xmlText#<br></cfoutput> </cfloop> --- end simplyfied code --- http://www.pontiacpartspage.com/with_productLink.gif http://www.pontiacpartspage.com/without_productLink.gif ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293226 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

