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:218357
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

Reply via email to