× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Hi Adam, I found some info on how to debug the handler, you can do this with your pointer in debug;

EVAL stringPtr:C (stringlen parm value) and that gives you what it is seeing.

I also realized I was checking values of the elements in the chars area, so I have to change my code to do that validation on each hit of the START_ELEMENT, then take the value of chars under that element off to my work field.

I see the light. Thanks

Sharon

To: rpg400-l@xxxxxxxxxxxx
From: adamglauser@xxxxxxxxxxxx
Subject: Re: XML-SAX not quite right II
Date: Wed, 12 Nov 2008 11:15:55 -0500

Sharon wrote:
I am also seeing that the stringPtr in one of my passes is this value: STRINGPTR = SPP:91630280040B50FE instead of the element value.

Need to convert something?

'stringPtr' is a pointer, so it should have a value that looks something
like that. In order to see the data, you need to dereference the point
(that is, view contents of the memory to which the pointer points).

Dereferencing in RPG is accomplished by using a based variable. In your
case, both 'chars' and 'ucs2' dereference stringPtr.
--
This is the RPG programming on the AS400 / 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.


_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.