Hi All,
I am trying to parse an XML file which structure is the following.
<Order>
<BookingCode>AAAAA</BookingCode>
<F1>
...
<F1>
<F2>
....
<F2>
<BookingCode>BBBBBB</BookingCode>
<F1>
...
<F1>
<F2>
....
<F2>
</Order>
More exactly I try to check all values of tag name "BookingCode" up to the end of the XML file. The number of occurrences of "BookingCode" is not determinated.
Is it necessary a loop after collecting a list of occurrences of "BookingCode"?
I am trying to use:
data: node_iterator type ref to if_ixml_node_iterator.
node_iterator = incode->CREATE_ITERATOR( ).
data: emp_node type ref to if_ixml_node.
emp_node = node_iterator->GET_NEXT( ).
data: emp_node_list type ref to if_ixml_node_list.
emp_node_list = emp_node->GET_CHILDREN( ).
data: emp_node_list_lenth type I.
emp_node_list_lenth = emp_node_list->GET_LENGTH( ).
Using the debugging I can not find exactly the behaviour.
Any suggestion for solving my issue will be well appreciated.
Thanks in advance.
Regards,
Giovanni