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

Re: SOX: element<->class mapping

  • From: james anderson <James.Anderson@m...>
  • To: "xml-dev@i..." <xml-dev@i...>
  • Date: Fri, 02 Oct 1998 14:18:19 +0200

xml list class mapping
Peter Murray-Rust wrote:
> 
> ...
> 
> Some people have suggested mappings are very difficult. I'm more optimistic!
> >
> >In a CLOS environment, this depends only on a mechanism which identifies lisp
> >packages with xml namespaces. For java, by analogy, a mechanism which
> >identified java packages with xml namespaces would suffice.

The point is, that the mapping between serial encoding and application data is
best separated into two stages: encoding and application modeling.

The first is very simple. A minimum of element method specialization is
necessary in order to encode / decode application data and type specialization
is useful as for method dispatching in the second phase. For this purpose it
suffices to declare a relation between java packages and xml namespaces and to
use introspection to map from element name to class. One would have standard
java packages appropriate for and associated with standard elements.

The second (items 3 - 5 in the original note) is more complex. It is also, in
my experience, not to be managed by simply identifying the correct class to
use to decode the stream. The storage issue (5 and your response) is one
example. Another is the issue of (re)integrating xml-encoded data into a data
store. Decoding the data is just the first step. The decoded instance is then
subject to more complex processing - to check its consistency (validation does
not suffice), to translate it into internal form, to bind nominal links to
instance data, etc.

The first stage should not be burdened with the more complex mechanisms which
this second stage requires. It should be kept as simple (and standardizable as
possible). If that is accomplished, then the interface between the application
and the parser can be set between the two phases.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.