SAP IXML CASTING ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

ABAP_IXML - Downcasts
Downcast options for the interfaces in iXML Library.

ABAP_SOURCE_CODE
DEMO CL_DEMO_IXML_CASTING

ABAP_DESCRIPTION
An iterator is created for all nodes of a parsed XML document and these are used to iterate. To identify nodes that are not elements, downcasts are performed from IF_IXML_NODE to IF_IXML_ELEMENT. Both checks on regular downcasts using the predicate expression IS INSTANCE OF and downcasts using the method QUERY_INTERFACE of the interface IF_IXML_UNKNOWN are demonstrated.