Best Way To Read XML Data

kirsch59

Member
I'm running 10.1C and have a cgi wrapper programs that calls a web service. The web service response is in the following simple XML format:

- <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <Error xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CIC_Business_Objects.Classes">
<IsSuccessful>false</IsSuccessful>

<Message>Cono is not an integer or Cono = 0</Message>

</Error>


</s:Body>

I would like to store the values of <IsSuccessful> and <Message> in a temp-table or two variables. Should I use DOM, SAX-READER or XML-READ?

If I use XML-READ to store the data in a temp-table how do I define the temp-table? I believe Error and Message are ABL keywords so they could not be field names in a temp-table. How do I get around it?
 

Stefan

Well-Known Member
See XML-NODE-NAME - this allows you to define a different name than the temp-table field name for mapping.
 
Top