Answered
Xml content element problem
hello,
I make a SOAP request using cfhttp and I ‘ve to display the amount I get.
I get the values using the following code:
<CFSet xmlDoc = XMLParse(cfhttp.filecontent)>
<CFDump var="#xmlDoc#">
but
#xmlDoc.XmlRoot.XmlChildren [1]. XmlChildren [1]. XmlChildren [1]. Amount#
returns: 29015
i can’t divide this value because it ‘s not numeric
In fact, when I use htmleditformat =>
#htmleditformat (xmlDoc.XmlRoot.XmlChildren [1]. XmlChildren [1]. XmlChildren [1]. Amount) #
it returns
<?xml version="1.0" encoding="UTF-8"?> <Amount xmlns=" http://tempuri.org/">29015</ Amount >
How can I get directly the numerical value 29015 so that I can divide it by 100 and display 290,15
thank you in advance
I make a SOAP request using cfhttp and I ‘ve to display the amount I get.
I get the values using the following code:
<CFSet xmlDoc = XMLParse(cfhttp.filecontent)>
<CFDump var="#xmlDoc#">
but
#xmlDoc.XmlRoot.XmlChildren [1]. XmlChildren [1]. XmlChildren [1]. Amount#
returns: 29015
i can’t divide this value because it ‘s not numeric
In fact, when I use htmleditformat =>
#htmleditformat (xmlDoc.XmlRoot.XmlChildren [1]. XmlChildren [1]. XmlChildren [1]. Amount) #
it returns
<?xml version="1.0" encoding="UTF-8"?> <Amount xmlns=" http://tempuri.org/">29015</ Amount >
How can I get directly the numerical value 29015 so that I can divide it by 100 and display 290,15
thank you in advance
