This commit is contained in:
danrega
2025-01-28 16:06:42 +01:00
parent 18f4dbe1cd
commit 76202630b8
11 changed files with 721 additions and 138 deletions

View File

@@ -512,7 +512,7 @@ CLASS zcl_demo_abap_xml_json IMPLEMENTATION.
LOOP AT attributes INTO DATA(attribute).
APPEND VALUE #( node_type = `attribute`
name = open_element->qname-name
name = attribute->qname-name
value = SWITCH #( attribute->value_type WHEN if_sxml_value=>co_vt_text THEN attribute->get_value( ) )
) TO nodes_tab.
ENDLOOP.
@@ -521,7 +521,7 @@ CLASS zcl_demo_abap_xml_json IMPLEMENTATION.
DATA(close_element) = CAST if_sxml_close_element( node_oo ).
APPEND VALUE #( node_type = `close element`
name = open_element->qname-name
name = close_element->qname-name
) TO nodes_tab.
WHEN if_sxml_node=>co_nt_value.