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?"
Article ID: 46
Created: August 31, 2009
Last Updated: August 24, 2022
Author: Support KB Author
Online URL: https://support.veryant.com/phpkb/article.php?id=46