Home Declaring XML Tags in Ruby
Reply: 0

Declaring XML Tags in Ruby

user631
1#
user631 Published in June 19, 2018, 7:55 pm

I am using Ruby to pull information from an excel sheet and with this information produce an xml file. I need to produce this in Ruby:

What I want:

<Betrag waehrung="EUR">150000</Betrag>

What I have:

<Betrag waehrung ="EUR"/>

I am currently trying xml.Betrag "Waehrung": "Eur" the Betrag has a row Identifier of "#{row[13]}" which is where it can be found on the excel sheet I am using. I have tried: xml.Betrag "Waehrung": ("Eur"), ("#{row[13]}") with no success, could you please advise?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.354305 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO