Don't use get_first_child on document root level

fix #205
This commit is contained in:
Oliver Jägle 2016-04-22 14:51:15 +02:00
parent 5cf4927835
commit 54ff89b9ca

View File

@ -1369,7 +1369,7 @@ CLASS lcl_xml_input IMPLEMENTATION.
li_abap TYPE REF TO if_ixml_node.
li_git ?= mi_xml_doc->get_root( )->get_first_child( ).
li_git ?= mi_xml_doc->find_from_name_ns( depth = 0 name = c_abapgit_tag ).
li_abap = li_git->get_first_child( ).
mi_xml_doc->get_root( )->remove_child( li_git ).