You probably need to add .xmlText to your xml element such as: <cfset theRate = xmlUSPS.RateV2Response.Package[p].Postage[i].Rate.xmlText>
Also, use CFDUMP to show you everything in the xml packet if this doesn't work. M!ke -----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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218358 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

