DB2 V8 is being used.I work on a cobol version which supports xml parsing.I have used XMLPARSE statement.But what about xml write?Is it possible ? If so what is the syntax and steps.Can you please let me know.
Main Topics
Browse All TopicsHow do we read and write xml in a cobol stored procedure.Right now the frontend(.net) converts the xml to character strings and sends to the stored procedure.But if we directly read the xml and write it,we will save some processing here.Are there any tools available in the market which are widely used and can you provide info on how to use them in a cobol stored procedures in a mainframe z/os environment.
Please help
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
DB2 V8 had some limited XML support, but I can't remember what it did and did not do, we never used that function.
In Enterprise COBOL for z/OS V4.1 there is a XML GENERATE now:
http://www-01.ibm.com/soft
One question is SAX vs. DOM - if you want to parse a token at a time, then XML PARSE will operate as a SAX parser. If you want to explode the data into a DOM tree, then you need another tool. I wrote my own then discovered a better solution at http://www.xmlbooster.com/
Business Accounts
Answer for Membership
by: giltjrPosted on 2008-09-23 at 05:26:35ID: 22548469
What DBMS are you using on z/OS? DB2 has support for XML built into it.
What version of Cobol are you using on z/OS? The most recent versions have support for XML parsing.
I would talk to your z/OS system programmers who should know what versions you are on and if they support XML parsing.