From: Nick Sieger Date: 2007-07-21T15:28:10+09:00 Subject: Re: ci_reporter user guide? ------=_Part_29703_8667444.1184999292804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/20/07, Maung Aung wrote: > > Hi, > I am new to ruby. I've googled for ci_reporter user guide, but i found > little helpful results. Could anyone have a clue where i can get support > for reporter? My real question is how to get xml output ruby. Earlier, > someone on the forum point me out that ci_reporter has this > functionality. ci_reporter has method called to_xml, but I don't really > know how to use it. Any help would be greatly appreciated. Re-reading your question, it sounds like you want a general to_xml method for Ruby objects. ci_reporter does not do this, it's meant to be used with your unit tests to generate xml reports (again see doco link). Perhaps you want to look at the xml serialization code in Rails, which requires you to use either simple hashes and arrays, or ActiveRecord. http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000375 http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Hash/Conversions.html#M000361 http://api.rubyonrails.org/classes/ActiveRecord/XmlSerialization.html#M000910 /Nick ------=_Part_29703_8667444.1184999292804--