Our customers are only required to be on V5R3 at this point. We will probably
re-write the whole application to read the XML files directly when they go to
V5R4. This is just a temporary thing I'm thinking. And yes I want to write it
in RPG. This is for an OFAC file. I'll check out Scott's stuff and see if that
will work.
Thanks to all.
~Zach
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of AGlauser@xxxxxxxxxxxx
Sent: Wednesday, July 11, 2007 8:41 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Parse XML to a Physical File
Zachary Johnson wrote on 11/07/2007 09:30:28:
I'm looking for the easiest way to parse one XML file to multiple
physical files using V5R3.
I realize that this kind of defeats the purpose of using XML but this is
the way it's going to be for now.
I'm not exactly sure what you mean by this ... I don't think having an XML
file map to multiple physical files is any different that having a CSV or
any other kind of input file map to multiple PFs.
I have zero XML expierence and I am basically looking for a place to
start.
I notice that you are a 'development programmer'. Given that, I'd suggest
using RPG. Since you are at V5R3, you won't be able to use the built in
XML handling of RPG at V5R4 (though it may be a good enough reason to
upgrade if you are planning to do a large amount of XML processing in
future). Scott Klement ported the open source project Expat XML parser to
i5/OS (see
http://www.scottklement.com/expat/). It is pretty
straightforward to use with RPG code, and Scott's port includes quite a
few examples. I'd recommend checking out all of the examples before you
start, as you can probably combine some of the different techniques more
effectively that way.
Hope this helps,
Adam
Attention:
The information contained in this message and or attachments is
intended only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient is
prohibited. If you received this message in error, please contact the sender
and
delete the material from any system and destroy any copies. Thank you for your
time and consideration.
Attention:
Le contenu de ce message et(ou) les fichiers ci-joints s'adressent
exclusivement à la personne ou -entité à laquelle ils sont destinés. Ils
peuvent
contenir de l'information confidentielle, protégée et(ou) classifiée. Il est
strictement interdit à toute personne ou entité autre que le(la) destinataire
prévu(e) de ce message d'examiner, de réviser, de retransmettre ou de diffuser
cette information, de prendre une quelconque action en fonction ou sur la base
de celle-ci, ou d'en faire tout autre usage. Si vous avez reçu ce message par
erreur, veuillez communiquer avec l'expéditeur(trice), supprimer ce message et
les fichiers ci-inclus de tout système, et en détruire toutes copies, qu'elles
soient électroniques ou imprimées. Nous vous remercions de votre entière
collaboration.
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively
for the individual or entity to which it is addressed. The message, together
with any attachment, may contain confidential and/or privileged
information. Any unauthorized review, use, printing, saving, copying,
disclosure
or distribution is strictly prohibited. If you have received this message in
error, please immediately
advise the sender by reply email and delete all copies.
As an Amazon Associate we earn from qualifying purchases.