|
Okey,
why just complicate things, in powerEXt you write XML in to subprocedures:
// ==================================================================
// Writing XML with xmlNode and xmlEndNode methods
xmlNode('orderHead':'orderNo="123456"');
xmlNode('customerNumber':'':'999888');
xmlNode('orderDate':'':%char(%date(timeStamp())));
xmlNode('orderText':'':'Text with spec char <>''"&');
xmlEndNode();
very simple !!!
You read the same XML in one loop, nothing has to be setup, you anly has to
know where the XML
is in storage:
// Read the XML
dow xmlReader = 0;
select;
when xmlGetNode = 'orderhead' and xmlGetAttr = 'orderno';
dsp = 'Order No: ' + xmlGetData;
dsply dsp;
when xmlGetNode = 'customernumber' and xmlGetAttr = '';
dsp = 'Cust No: ' + xmlGetData;
dsply dsp;
when xmlGetNode = 'orderdate' and xmlGetAttr = '';
dsp = 'Order Date: ' + xmlGetData;
dsply dsp;
when xmlGetNode = 'ordertext' and xmlGetAttr = '';
dsp = 'Order Text: ' + xmlGetData;
dsply dsp ' ' wait;
endsl;
enddo;
no Voodo here ....
On Wed, Nov 17, 2010 at 5:58 PM, Scott Klement <
rpg400-l@xxxxxxxxxxxxxxxx> wrote:
Voodoo doesn't use incantations. :)
On 11/17/2010 9:17 AM, Mark Murphy/STAR BASE Consulting Inc. wrote:
So are you saying that the XML Tool Kit is some voodoo witch doctorcraft?
--
-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----
From: Aaron Bartell
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
Date: 11/16/2010 08:06PM
Subject: Re: XML-INTO (just need a quick answer)...
I used XML4PR quite a bit about 6 to 8 years ago but haven't really
used the latest incantation.
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
Regards,
Henrik RÃtzou
http://powerEXT.com <http://powerext.com/>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.