Skip to Content
0
Former Member
May 11, 2008 at 12:00 PM

Interpret/Convet XML to ABAP/character

22 Views

Hi,

I am consuming a web-Service (posted on internet) via client-proxy method. for this I've created the client proxy and called one of the methods in the class.

After passing the input values (country Code) to the web-service I am receiving the result (country Name) in a varliable (string format) but, the format of the returned data is XML.

example:

<NewDataSet> <Table> <countrycode>in</countrycode> <name>India</name> </Table> <Table> <countrycode>in</countrycode> <name>India</name> </Table> </NewDataSet>

How can I get the vaule mentioned in variable <name> in the output ??

Is there a way to convert this XML into character format and read the value in the variable <name> or parse every field from the output in the internal table what can be the approch and solution to do this ?

/Mike