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

Ignoring attribute when converting object to xml #54

Open Shruti-R opened 8 years ago

Shruti-R commented 8 years ago

Hi, I want to ignore attributes when converting the object to xml? Is there a way I can specify something in annotation so attribute is excluded at the time of xml conversion?

Thanks in advance

vanboom commented 10 months ago

:+1: This would be helpful for optional attributes that have a nil value.