Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Hot to get values from xml nodes with generic reference

Active Contributor
0 Kudos

Hi All,

need an advice. I have an xml, generated by call transformation id - so, completely generic. In source data there was a table with fields as a reference to data.

result xml:

I'm tryinfo to parse the xml with ixml library. How can I get the referenced values, when I find the OLD_VALUE and NEW_VALUE Nodes. I can find attribute with

    DATA(lo_attributes) = node->get_attributes( ).
    lo_ixml_node1 ?= lo_attributes->get_named_item_ns( name = `href` ).
    IF lo_ixml_node1 IS BOUND.
      lv_value = lo_ixml_node1->get_value( ).

So, I have #d2790 in lv_value. But, how can I quickly find 800000.0 from it?

Thank you in advance

Best Regards


Active Contributor

I never tried it, but it seems you could use the method FIND_FROM_ID from the document.