1754362 Members
4415 Online
108813 Solutions
New Discussion юеВ

XML in Cobol

 
SOLVED
Go to solution
Bojan Nemec
Honored Contributor

XML in Cobol

Hi,

Is there any software, library or maybe preprocessor or a combination which helps to read/parse XML in Cobol?
I already know about Apache Xerces and Xalan, eXpat but all of these are C or C++ based. So I post this thread before begin to write a Cobol wraper arround one of this products.

Bojan
12 REPLIES 12
David B Sneddon
Honored Contributor

Re: XML in Cobol

Bojan,

We don't use COBOL but do something similar with
BASIC. We had to write wrapper routines in
a combination of BASIC and C. We are using
LIBXML. I don't think you will find any "native"
COBOL software to do this.

Regards
Dave
Kris Clippeleyr
Honored Contributor

Re: XML in Cobol

Bojan,

Take a look at
http://xml4cobol.com/
http://www.xmlbooster.com/

Maybe there you'll find what you're looking for.

Kris
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Antoniov.
Honored Contributor

Re: XML in Cobol

Bojan,
look at here for xml parser over vms http://www.openvms.org/stories.php?story=02/11/17/4219964

In vms cobol access to data is same of other languages; only asciz are different. I use a simple routine to convert asciz string (C/C++) to fixed len string (Cobol) and viceversa.

Antonio Vigliotti
Antonio Maria Vigliotti
Willem Grooters
Honored Contributor

Re: XML in Cobol

Bojan,

IIRC there is a package called CXM on the e-business CD (that comes with VMS). This package contains a number of routines for accessing XML mesaages (that is: creating from, and reading into local variables). We use these routines extensively in our communications with external systems.

Willem
Willem Grooters
OpenVMS Developer & System Manager
Bojan Nemec
Honored Contributor

Re: XML in Cobol

Willem,

I searched both of the e-business CDs (version 1.5) and I could not find the CXM package. I found only the previous mentioned Apache Xerces and Xalan.

Bojan
Wim Van den Wyngaert
Honored Contributor

Re: XML in Cobol

Isn't it strange that a search for CXM in hp.com doesn't return anything ?

Wim
Wim
Bojan Nemec
Honored Contributor

Re: XML in Cobol

Thanks for yours replies. I see that the only possible solution is write a wrapper arround one of the products. Probably this will be the eXpat (it is the simpliest and smallest, I have also an operating system version problem - it must work on 6.2).

Willem,

Can you give me a hint where to find the package you mentioned. I will be glad to see this product before I start to write the wraper.

Bojan
David B Sneddon
Honored Contributor
Solution

Re: XML in Cobol

Bojan,

You might want to consider libxml over expat.
I believe libxml is a validating parser whereas
expat is not -- using a validating parser will
make processing a little easier.

Dave