*"* use this source file for the definition and implementation of
*"* local helper classes, interface definitions and type
*"* declarations*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section*"* use this source file for any macro definitions you need
*"* in the implementation part of the class*"* use this source file for your ABAP unit test classesmethod build_xml.
data: lo_theme_element type ref to if_ixml_element.
data: lo_theme type ref to if_ixml_element.
data: lo_theme_objdef type ref to if_ixml_element.
check io_document is bound.
lo_theme ?= io_document->get_root_element( ).
check lo_theme is bound.
if extracolor is initial.
lo_theme_objdef ?= io_document->create_simple_element_ns( prefix = zcl_excel_theme=>c_theme_prefix
name = zcl_excel_theme=>c_theme_extra_color
parent = lo_theme ).
else.
lo_theme->append_child( new_child = extracolor ).
endif.
endmethod. "build_xmlmethod load.
"! so far copy only existing values
extracolor ?= io_extra_color.
endmethod. "load