IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XML Generation with validation


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shravankumar.mudrebettu

New User


Joined: 20 Mar 2012
Posts: 2
Location: India

PostPosted: Wed Mar 28, 2012 1:11 am
Reply with quote

Hello,

I have requirement where I am supposed to generate a "Validated" XML.
I have the copy book with required XML values and a XSD. The XML has to be generated based on the XSD.

I have already searched the forum for the related topics and found that Arus had once posted a similar question, but could not find any specific solution.

I need help to know if there are any specific tools available to generate the XML based on the XSD with data.

Kindly note I have little knowledge in RDz and one of the feature I could see is of using web services (however I am not sure if that approach can be used and also I have no knowledge in it).
However I could generate the XML (with blank values) from the XSD using the generate option in RDz , so I believe there should be some plugin that is used in RDz which converts the XSD to XML (hope I can use this with values and can call from my pl/i , cobol code)
Also our client is little indented toward using PLI as the programming language, so if anyone has used PLISAXD parser with validation could you please point to relevant links/topics which have a sample code?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Mar 28, 2012 1:39 am
Reply with quote

PLISAXD parses XML, PL/I has no real functions to speak of to create XML, let alone validated XML.
Back to top
View user's profile Send private message
shravankumar.mudrebettu

New User


Joined: 20 Mar 2012
Posts: 2
Location: India

PostPosted: Wed Mar 28, 2012 1:46 am
Reply with quote

Hello Prino,

I am sorry that I had clubbed the PLI parser question along with the main question (HOw to generate XML with XSD validated).
Kindly note I am willing to consider any tool that we can use to generate the XML with XSD validated, and also it would be be if I have to do some coding in cobol.

I had raised the PLISAXD question as I was thinking if I can use the PLISAXD to validate the generated XML (which can be generated without validation using XML generate of COBOL or XMLCHAR function in PLI) against the XSD.

I believe XMLCHAR function is available in PLI to generate the XML, but it is a very basic convertor with not much features.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Mar 28, 2012 4:24 am
Reply with quote

google for ibm hits on DFHWS2LS and DFHLS2WS
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Report generation JCL & VSAM 18
No new posts How can I get Generation Nbr of GDG f... IBM Tools 1
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
Search our Forums:

Back to Top