Empact / roxml

ROXML is a module for binding Ruby classes to XML. It supports custom mapping and bidirectional marshalling between Ruby and XML using annotation-style class methods, via Nokogiri or LibXML.
http://roxml.rubyforge.org/
MIT License
223 stars 176 forks source link

Calling to_xml on an Array of ROXML objects results in an empty collection #26

Open findchris opened 14 years ago

findchris commented 14 years ago

Hi there.

I have a ROXML object that looks like: class Activity include ROXML xml_accessor :id end

If I have an array of these objects and call .to_xml on the array, I receive an empty xml collection: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<activities type=\"array\">\n\n"

Any idea why or how to fix this? Thanks