XML and Namespace



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

XML and Namespace

Postby dekberg » Fri Apr 20, 2012 8:11 pm

I am trying to create an XML BOD with multiple Namespaces.
<SyncSCSItem xmlns="http://www.af.mil/oagis/sup" xmlns:oa="http://www.openapplications.org/oagis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.af.mil/oagis/sup SyncSCSItem.xsd">


I am not sure if this can be done or not. I have Cobol Enterprise 4.2. I have searched different manuals and have not seen any examples of this for COBOL.
dekberg
 
Posts: 8
Joined: Tue Mar 13, 2012 11:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: XML and Namespace

Postby BillyBoyo » Fri Apr 20, 2012 8:22 pm

Can you just try it? What are you going to do if you can't use Cobol?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: XML and Namespace

Postby dekberg » Fri Apr 20, 2012 8:27 pm

I have tried it, the XML GENERATE statement only allows me to use one NAMESPACE. We do this from a Mid-Tier now and are trying to see if we can do the same thing on the Mainframe with the new 4.2 COBOL.
dekberg
 
Posts: 8
Joined: Tue Mar 13, 2012 11:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: XML and Namespace

Postby BillyBoyo » Fri Apr 20, 2012 9:05 pm

It's maybe a question for IBM then, or a forum wider than this one (which is for Beginners and Students), or both, if you search for a coffee with IBM Cobol XML?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to IBM Cobol