Question ID : 46
Created on 2009-08-31 at 5:29 PM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=46
Question:
Suppose I want to retrieve XML with an HTTP request given a particular URL.
What is the easiest or best way to do this? Please provide a sample program.
Answer:
One way to communicate with an HTTP server is by using the HTTPClient class.
There are other ways to get XML data from a URL.
isCOBOL includes an internal object named com.iscobol.rts.XMLStream.
We also support ACUCOBOL-GT's C$XML.
Because isCOBOL compiles to Java code, you can use Java language XML APIs and tools available to the Java programmer.
See the KB article "Does isCOBOL Support C$XML or other XML interfaces?".
isCOBOL also supports procedure division statements XML PARSE and XML Generate.
See the KB Article "What are all of the options for a COBOL program to read and write XML files?"