Jon,

Either I don't understand you or we disagree :-)

Don't you always have to check the data after the parsing? And is 'if
numCustomerID = 0' better than 'if CustomerID = *BLANK'?

I tend to see the XML-document as a box full of data items; through
XML-INTO I pick out the items that I'm interested in and leave the others
alone (allowextra=yes). Before the parsing I initialize the DS, after the
parsing I check whether I have enough data to do whatever I need to do.
I'd rather do this checking afterwards than having the XML-INTO bomb out
on me.

So indeed I am using 'allowmissing=yes' and 'allowextra=yes' as defaults
and I'm quite happy with it, thank you very much.

Joep Beckeringh



Jon Paris


+ 'allowmissing=yes '
+ 'allowextra=yes '
+ 'case=any');

For any of you still using these options as your default you really
should take a look at the new options such as countprefix - there is
rarely ever a need to use allowmissing/extra any more and unless you
are validating the XML prior to running XML-INTO you are taking a
real risk of missing required elements. Heck the document could be
all but empty and it would rn without error.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

This thread ...

Replies:

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

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