class Lutaml::Model::XmlAdapter::OxAdapter
def to_xml(options = {})
def to_xml(options = {}) builder = Ox::Builder.new if @root.is_a?(Lutaml::Model::XmlAdapter::OxElement) @root.to_xml(builder) elsif ordered?(@root, options) build_ordered_element(builder, @root, options) else build_element(builder, @root, options) end # xml_data = Ox.dump(builder) xml_data = builder.to_s options[:declaration] ? declaration(options) + xml_data : xml_data end