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

Re: XML and Objects

  • From: Ken MacLeod <ken@b...>
  • To: xml-dev@i...
  • Date: Tue, 29 Sep 1998 10:02:58 -0500 (CDT)

xml elements objects
Mark Baker writes:
> David Brownell wrote:
> 
> >         <BEAN CLASS="com.example.foo.SimpleBean">
> >             <PROPERTY NAME="prop1" DCD:i4>49</PROPERTY>
> >             <PROPERTY NAME="prop2" DCD:string>hello world</PROPERTY>
> >             ...
> >             </BEAN>

> I'd personally like to see Java packages mapped to namespaces in
> some manner, thereby allowing us to do away with Java-specific
> structures, and just stick to the content, ala (ignoring the
> namespace stuff for the moment - I haven't looked at them recently);

> <SimpleBean>
>   <prop1 DCD:i4>49</prop1>
>   <prop2 DCD:string>hello world</prop2>
> </SimpleBean>

It's clear that there are two forms of serialization, and since I'm
not aware of any terms to call them, I'll call them internal and
external.

The first example above is ``external'', the serialization uses a
fixed set of elements, and class and member information is marshaled
as data.  External serialization is generally done using reflection
and introspection, and often doesn't require any class-defined
behavior.  LDO's XML serialization and XML-RPC are examples of the
``external'' form.

The second example above is ``internal'', the serialization uses
class-specific elements, where class and member information are
represented as XML elements.  Internal serialization is generally done
according to the class definition (reflection or IDL), and often
requires a stub or class-specific behavior.  Coins (if I understand
correctly) is an example of the ``internal'' form.

-- Ken MacLeod
   ken@b...

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.