|
Ha ha, did I?
d type s 50a varying
d len s 10p 0
d data s 1024a varying
dow xmlReader = 0;
select;
when xmlGetNode = 'Data_Type' and xmlGetAttr = '';
type = xmlGetData;
when xmlGetNode = 'Data_LEN' and xmlGetAttr = '';
len = xmlGetDataNum;
when xmlGetNode = 'DATA' and xmlGetAttr = '';
data = xmlGetData;
endsl;
enddo;
On Thu, Mar 7, 2013 at 6:22 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>wrote:
On Thu, 7 Mar 2013, at 17:24:42, Henrik R?tzou <hr@xxxxxxxxxxxx> wrote:
This is elementary gents,
I was waiting for you to jump in Henrik - knew you couldn't resist.
But you've cheated - you didn't capture any of the data except the one
numeric value. The logic as shown is nothing like what would be needed to
handle the whole thing. You have great software - but sometimes you can't
resist the temptation to "cheat" a little.
XML-INTO with a loop and Monitor around a test on a char version of the
field would look every bit as short _and_ capture the rest of the data.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (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-2024 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.