[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: APIs, messaging

  • From: Tony Coates <Tony.Coates@r...>
  • To: xml-dev@l...
  • Date: Thu, 24 May 2001 13:45:50 +0100

Re: APIs


On 22/05/2001 18:29:37 Simon St.Laurent wrote:

>It seems like we have people who want to use XML the same way they've
>used data structures in programs, building tightly-defined APIs to close
>tolerances the same way they've built programs for the last few decades.
>APIs are built and documented and developers have to conform to the
>rules of the API to use them.
>
>There's another group of people who want to use XML to get out of that
>world of close tolerances and into a much less precise approach where
>messages are exchanged and things may or may not happen depending on the
>understandings of the sender and the receiver.  Message formats may or
>may not be documented and developers can use information for processes
>quite different from the original design.
>
>Does that seem like a reasonable breakdown of the situation?

Sure, but even within this there are distinctions. Let's call it validating
(first group) vs. well-formed (second group).  Within the validating group, the
driver for demanding tight definitions can be that close enough is simply not
good enough, e.g. for XML messages representing financial transactions.  In
areas like this, your users may not want you to be robust and tolerant of
differences from what is expected, they may just want you to reject it.  Schemas
are only part of the game here, but an important part.

However, also within the validating group will be people who want to move as
much as possible of the validation code out of the main application that
processes it.  To robustly parse well-formed XML means doing all necessary
validation yourself, and that tends to complicate your application architecture
(the lack of standard "validation" API for XML is the real problem here, but
that is another thread ...).  So, the "well-formed" group are those whose users
demand that applications carry on as robustly as possible regardless of the
content of the messages they receive, and who in addition can afford to
implement all the validation that they require in their own "ad hoc" manner.

     Cheers,
          Tony.
========
Anthony B. Coates
Leader of XML Architecture & Design
Chief Technology Office
Reuters Plc, London.
tony.coates@r...
========


-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.