× 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.



I've check the archives. Maybe I missed something. When I run an RPG IV
program and execute the XML-SAX procedure with :

XML-SAX(E) %Handler(HandleData:info) %XML(XML_Input:'doc=file');

With the "info" as:
D info DS
D attrName 30A VARYING
D haveAttr N
D attrValue 30A VARYING

I can not match up the attrName because there is always the first two
byte missing (& the 2 bytes are missing for the data also) on the string
for the event:

When event = *XML_START_ELEMENT;
(my prototype)
D HandleData PI 10I 0
D comm LikeDS(info)
D event 10I 0 Value
D string * Value
D stringLen 20I 0 Value
D exceptionId 10I 0 Value

My understanding is that the value in "string" should have the name
attribute. Why is it doing this?


Bill Tobiasson


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.