Hello...
I'm trying to generate and XML file using .rxml and I'm having a problem with element names that contain a hyphen. Here is a chunk of the .rxml file:
xml.instruct! :xml, :version=>"1.0" xml.properties do @properties.each do |p| xml.property do xml.location do xml.street-address(p.street_address) xml.city-name(p.city) .. end end end end
As soon as the code hits the street-address line, a NoMethodError is thrown:
undefined method `address' for #<#<Class:0x664ede8>:0x664edc0>
Any idea how to fix this? The hyphens are dictated by the client, thus I can't change that.
Thanks, Jeff