That was too easy! Thanks Andy & Michael! >Try ><cfset theRate = xmlUSPS.RateV2Response.Package[p].Postage[i].Rate.xmlText> > >-----Original Message----- >From: Stan Winchester [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 14, 2005 8:05 PM >To: CF-Talk >Subject: Newbie to XML > >I and am having trouble converting an XmlText element to a numeric value. > >The scenario: I receive an XML packet from USPS where an XmlText element has >a value of say 13.95. However, if I try and do any math on the XmlText it >throws an error because it is not numeric. If I put a val function around >it, the value is 0. How am I supposed to do any math with this XmlText >element and other CF variables? > >For example: > ><cfset theRate = xmlUSPS.RateV2Response.Package[p].Postage[i].Rate> > >isXMLElem(theRate) == YES > >val(theRate) == 0 > >Thank you, >Aftershock Web Design, Inc. >by: Stan Winchester >President/Developer >[EMAIL PROTECTED] >http://www.aftershockweb.com/ >Phone 503-244-3440 >Fax 503-244-3454
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218366 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

