MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XML for REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Mon Nov 13, 2006 7:42 am    Post subject: XML for REXX Reply with quote

Is anybody interested in an XML parser for z/OS REXX? I have recently started using the xml4c package and it seems trivial to front-end a REXX layer on top. If there is interest I will knock it up and ask Sam to put it on the CBT tape. One caveat is that there is a pre-req for the XML toolkit, which is big and is best installed into the LPA.

I intend xml4rexx to be open source, so anybody who has knowledge of XML and C++ can contribute.
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Nov 14, 2006 9:09 am    Post subject: Reply with quote

DaveyC,

Here is link to rexx tools page on IBM

http://www-306.ibm.com/software/awdtools/rexx/library/tools.html

It seems Patrick McPhee, has some basic parsers out there

http://pages.interlog.com/~ptjm/

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Thu Nov 16, 2006 7:54 am    Post subject: Reply with quote

Thanks kolusu,

None of those "very good" packages work on z/OS, which has a very different REXX programming interface then OORexx, NetRexx, Regina etc. For starters an assembler front end using the CEEPIPI LE service is required to create a persistent LE environment. On z/OS REXX functions are limited to 8 characters, so you would need a function like:

Code:

xml = <somexml>

doc = xml4rexx( "ParseMem", xml )

node = xml4rexx( "GetRootNode", doc )


There doesn't seem too much interest so I may just do it as an intellectual exercise. Also, I recently managed to install Groovy on OMVS which has the full power of the Java JRE. But it's slow and still in the design phase (good though).
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Sat Nov 18, 2006 11:53 pm    Post subject: Reply with quote

Dave,
Is it open source already ?

Can I have a peek into it ? Might indulge in it for -as you put it- intellectual excercies.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Mon Nov 20, 2006 6:09 am    Post subject: Reply with quote

Coggo,

I haven't started yet. But once I do I will stick it on my website and let you know. Is there anything you are particularly interested in?
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Mon Nov 20, 2006 6:24 pm    Post subject: Reply with quote

Nothing in particular, mate. I did C++ long ago and was thinking if I could relearn.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Mon Nov 20, 2006 9:37 pm    Post subject: Reply with quote

First off you will need to download this http://www-03.ibm.com/servers/eserver/zseries/software/xml/download/. It's a big bugger and needs to reside in an HFS, so you may need to mount a new file system. All the instructions for downloading and installing are on the website. I downloaded the non-SMPE package because I'm lazy. BTW, your site might already have the XML Toolkit installed if they are using the XML Extender for DB2, so check this out first. If you just want to check out the parser C++ samples you can download the xerces-c package from Apache http://xml.apache.org/xerces-c/. The XML Toolkit is a port of xerces-c with ICU integration for handling EBCDIC code pages.

The toolkit is fully featured. It supports DOM/SAX/SAX2 DTD/Schema validation. It performs well, I got it upto 5000 parses a minute. It will not be as efficient as the integrated COBOL/PL1 parsers as they are buffer in, buffer out non-validating SAX parsers. Fast but pretty dumb.

If you need any help, give me a shout.
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Nov 22, 2006 4:06 am    Post subject: Reply with quote

Dave,
XML Toolkit is installed on our z/OS. Next ?
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Tue Dec 05, 2006 5:49 am    Post subject: Reply with quote

Next, run the samples to make sure it's working. To run in TSO/MVS you need to link to a PDS data set. You can find the JCL in $XMLROOT/xml4c-5_6/lib/IBM/JCLIN/
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group