For Programmers: Free Programming Magazines  


Home > Archive > Cobol > November 2007 > Generate XML with attributes from a cobol copybook









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Generate XML with attributes from a cobol copybook
Archie

2007-11-16, 6:55 pm

I need to generate a XML using the cobol XML GENERATE having lines
like
<Trans tc="8">Original request</Trans>

How do I declare the variable so that the attribute part (tc ="8") is
also generated?
Thanks in advance!
Richard

2007-11-17, 6:55 pm

On Nov 17, 7:01 am, Archie <archi...@gmail.com> wrote:
> I need to generate a XML using the cobol XML GENERATE having lines
> like
> <Trans tc="8">Original request</Trans>
>
> How do I declare the variable so that the attribute part (tc ="8") is
> also generated?
> Thanks in advance!


Here's an article:

http://www-1.ibm.com/support/docvie...s=UTF-8&lang=en

I gotta say that it looks like a complete waste of time doing XML that
way. I use templating and the code to do that is probably no more
complicated than the sample that does just one fixed output while
templating could do almost any type of output.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com