using ruby 2, rails 4, gem: xml/mapping
here is the current output:
class Item
include XML::Mapping
array_node :picture_details, 'PictureDetails', :class => PictureURL, :default_value => []
end
class PictureURL
include XML::Mapping
include Initializer
text_node :picture_url, 'PictureURL', :optional => true
end
the output I am getting:
<PictureDetails>
<PictureURL>VALUE</PictureURL>
</PictureDetails>
<PictureDetails>
<PictureURL>VALUE</PictureURL>
</PictureDetails>
<PictureDetails>
<PictureURL>VALUE</PictureURL>
</PictureDetails>
what I want:
<PictureDetails>
<PictureURL>VALUE</PictureURL>
<PictureURL>VALUE</PictureURL>
<PictureURL>VALUE</PictureURL>
</PictureDetails>
I looked over documentation but still can not figure out how I should setup this to reach my desired output..