support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets

Veryant Knowledge Base
Home > All Categories > XML > What is the best way to retrieve XML via HTTP?
Question Title What is the best way to retrieve XML via HTTP?

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.


isCOBOL APS provides an internal object named com.iscobol.rts.XMLStream that allows a COBOL program to easily read and write XML files and streams. XMLStream is documented in the isCOBOL APS Language Reference Guide. 

Example code is provided in the sample directory installed with isCOBOL APS (sample/issamples/s-objects/xml.cbl). You can view the source and execute the sample program by running "isCOBOL samples" from the Start Menu and clicking on the Objects tab. 

In addition, isCOBOL APS gives COBOL programs the full array of XML APIs and tools available to a Java programmer. See and

For example, to parse local XML files or XML from a URL a COBOL program can take advantage of a Java package named JDOM ( 

With JDOM you can parse a local file or a remote file from a URL.

Click here for a sample program that demonstrates how to retrieve an XML document from a URL and parse the XML using JDOM.
Authored by: Veryant Support This question has been viewed 6809 times so far.
Click Here to View all the questions in XML category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. What are all of the options for a COBOL program to read and write XML files?
  2. Can you recommend an XML editor?
Article Information Additional Information
Article Number: 46
Created: 2009-08-31 5:29 PM
Rating: 1 Star
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
Search Knowledge Base Search Knowledge Base


© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.