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



From: Brian May
That is exactly the point.  XMLSERVICE is a SIMPLE, FLEXIBLE,
and GENERIC interface to all your IBM i applications.

Good point. Just one example of the simplicity and clarity of the interface is the notation for defining data types for input parameters:

<data var="price" type="10P2">12345.67</data>

where the type attribute maps directly to RPG data types, 10 digits, 2 decimal positions, packed format. 

And it's not just that you can denote traditional RPG data types such as "packed", but the fact that you can use simple notion such as "10P2" to tell XMLSERVICE that the parameter has 10 digits, 2 decimals, and packed format.

Why didn't the creators of the XML Schema specification think of coming up with a simple way of defining data type, length, and decimal positions for XML elements and attributes? They just left it with notion like "xs:unsignedInt". What if they had come up with "5U0", "10U0", or "20U0" to define 2-byte, 4-byte, and 8-byte integers? That would just make too much sense!

-Nathan


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.