class Lutaml::Model::Xml::Builder::Ox
def create_element(name, attributes = {})
def create_element(name, attributes = {}) if @current_namespace && !name.start_with?("#{@current_namespace}:") name = "#{@current_namespace}:#{name}" end if block_given? xml.element(name, attributes) do |element| yield(self.class.new(element, { encoding: encoding })) end else xml.element(name, attributes) end end