# File lib/cimi/model/schema.rb, line 70 def to_xml(model, xml) return unless model return unless model[@name] case @text when :nested then xml[@xml_name] = [{ "content" => model[@name] }] when :direct then xml["content"] = model[@name] else xml[@xml_name] = model[@name] end end