class Odf::Utils::Xml

Public Instance Methods

add_element(name, value = nil, **attributes) click to toggle source
# File lib/odf/utils/xml.rb, line 4
def add_element(name, value = nil, **attributes)
  root.add_child(create_element(name, value, attributes))
end
add_element_into(element, name, value = nil, **attributes) click to toggle source
# File lib/odf/utils/xml.rb, line 8
def add_element_into(element, name, value = nil, **attributes)
  element.add_child(create_element(name, value, attributes))
end