|
HELP.
I have a major deadline to meet and have now discovered that my
%XML-INTO handler routine is not working as expected.
The handler has been defined to process a DIM(40) array.
This appears to have been working until now when an investigation of a
decimal data error reveals that the data structure that the data
structure passed to the handler is corrupted when subsequent elements in
the xml document are missing.
For example, a person-name element may contain 1st 2nd an last names in
one occurrence but on the next may only contain the last name.
The missing name elements get populated with whatever might be found in
some other element.
This is disastrous , since fields are then presented to the code in the
handler containing rubbish.
Of course, I have compile the XML-INTO with the XmlOptions parameter to
allow for missing elements as follows.
D XmlOptions C 'allowmissing=yes allowextra=yes -
D doc=file case=any
path='
This issue must surely have arisen before on this forum but I can't find
it.
I have just been advised that a workaround is to set the array to DIM(1)
so that the handler is call for each element of a multiple element xml
structure.
Regards,
Peter
Visit our website www.vedaadvantage.com. It has a new design with improved navigation and search capabilities; and customer friendly interface with more relevant insights and solutions to help you make informed decisions.
#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived
or lost by any mistransmission. If you receive this correspondence in error, please
immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where
the sender expressly, and with authority, states them to be the views of Veda Advantage.
If you need assistance, please contact Veda Advantage on either :-
Australia 1300-921-621 or New Zealand +64 9 367 6200
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.