HP3000-L Archives

November 2002, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Clogg <[log in to unmask]>
Reply To:
John Clogg <[log in to unmask]>
Date:
Fri, 29 Nov 2002 11:40:10 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
I believe recent versions of SUPRTOOL have the ability to generate XML for
you.

-----Original Message-----
From: Lars Appel [mailto:[log in to unmask]]
Sent: Friday, November 29, 2002 11:12 AM
To: [log in to unmask]
Subject: Re: XML on HP3000


(not pretending to be an XML expert, but who cares? ;-)

>- is it possible to generate/process XML on HP3000??

Generating XML output should be fairly easy with all the
programming languages or reporting tools. It's basically
adding the markup tags similar to...

  01  some-rec.
    05  first-name  pic x(40).
    05  last-name   pix x(40).
  ...

  display "<person>"
  display "<firstname>" first-name "</firstname>"
  display "<lastname>"  last-name  "</lastname>"
  display "</person>


Parsing XML might be a little bit more difficult, depending
on the programming language used. With Java, for example, you
could use one of the available parsers without porting-effort.
I once used a couple of Xerces/J examples from xml.apache.org
on MPE/iX, but there are also XML tools on the IBM alphaworks
or the SUN Java web sites, as far as I recall.

To integrate with existing "legacy" languages, I would probably
try running the Java XML parser in a separate process or server
job and having it output results in a file format convenient for
use by the "legacy" program.

Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2