Hi joe,

As per your comment below:

"Generally speaking, RPG doesn't initialize data structure elements
unless you specifically tell it to. In the case of the XML-INTO, it
doesn't initialize the children of an element until it actually accesses
that element. "

I understand what your saying but my understanding is that the countprefix is there to tell you if an element is present or not - so if it is missing I would expect zero.

I have tried this out and can see it does this if in my example I had a countpeanut and the was no peanut, but at the same time babyNut would still be blank, but I would have thought the XML into should also set it to zero as it is missing. It seems to only deal with what is missing at the highest level.

Kind rgds
The information contained in this email is confidential and may also contain privileged information. Sender does not waive confidentiality or legal privilege. If you are not the intended recipient please notify the sender immediately; you should not retain this message or disclose its content to anyone.
Internet communications are not secure or error free and the sender does not accept any liability for the content of the email. Although emails are routinely screened for viruses, the sender does not accept responsibility for any damage caused. Replies to this email may be monitored.
For more information about the Tullett Prebon group of companies please visit the following web site: www.tullettprebon.com


This thread ...


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

This mailing list archive is Copyright 1997-2020 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].