[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Missing xml attribute when running on Linux

dpenney@gmail.com

6/29/2006 8:31:00 PM

I have code that calls the PayPal API. Now when I run this on my
Windows box it generates the following

.....
<n2:OrderTotal currencyID="USD">1200.21</n2:OrderTotal>
.....

but when I run it on my linux box I get

.....
<n2:OrderTotal>1200.21</n2:OrderTotal>
.....

Same exact code. The line that sets the currency is

bamount = BasicAmountType.new(params[:amount]) # The 1200.21
bamount.xmlattr_currencyID='USD' # Bit that works in Win not Linux

Any ideas?