XML Documents Are Objects! (or "Killing OO Softly With XML")

Bill la Forge b.laforge at opengroup.org
Tue Mar 10 22:28:11 GMT 1998


I've been proposing effectively the same thing on the 
java-xml-interest at opengroup.org list. 

I've been using the term COIN to express this concept--a coin has
two faces, an XML element and a Java Object. 


For information about java-xml-interest, see

>>From java-xml-interest-request at opengroup.org  Mon Mar  9 20:03:05 1998
>Return-Path: <java-xml-interest-request at opengroup.org>
>Resent-Date: 10 Mar 1998 01:03:02 -0000
>Resent-Cc: recipient list not shown: ;
>X-Sender: laforge at postman.osf.org
>Date: Mon, 09 Mar 1998 20:09:11 -0500
>To: java-xml-interest at opengroup.org
>From: Bill la Forge <b.laforge at opengroup.org>
>Subject: State of Coins
>Resent-Message-ID: <"27dFJtr0wrF.A.4bH.CFJB1"@postman.opengroup.org>
>Resent-From: java-xml-interest at opengroup.org
>X-Mailing-List: java-xml-interest:archive/latest/104
>X-Loop: java-xml-interest at opengroup.org
>Resent-Sender: java-xml-interest-request at opengroup.org
>The tests for coins now successfully executes the following XML:
>    <COIN TYPE="TEST" CLASS="TestFace"/>
>    <TEST ID="HERE" XYZ="123"/>
>This is run simply with the command:
>  java ORG.opengroup.coins.Coins text4.xml
>where test4.xml contains the above document. The output from the test is:
>  XYZ=123
>The code for the coin TestFace is found at:
>  http://www.camb.opengroup.org/~laforge/axtp/src/ORG/opengroup/coins/tests/TestFace.java
>My contention is that coins are "better" than Java Beans, though it is difficult
>to make any valid determination on the basis of such a small sample size (1!).
>My intention is to begin converting AXTP to use coins.
>I further contend that my XML processor is pretty bad. The fact that it now has
>semantic support for ids and idrefs doesn't really change that. The processor
>can be found at:
>  http://www.camb.opengroup.org/~laforge/axtp/src/ORG/opengroup/coins/Coins.java
>(I've also taken care that the processor will work with signed elements, only
>recomposing those elements on output which were "dirty".)
>Dmitri and Gavin find coins to be a subset of DOM. 
>As one of the DOm WG members, I can tell you there is no conflict. You
>could use DOM for some of the things in Coins, but with a probable
>loss in performance.
>I conclude from this that the api which Dmitri referenced should be, at least in part,
>used where appropriate. (Why have needless variations?)
>You may enjoy the new coins package documentation at:
>  http://www.camb.opengroup.org/~laforge/axtp/api/Package-ORG.opengroup.coins.html
>I've also updated the AXTP zip file to include 
>this latest version of the coins package:
>  http://www.camb.opengroup.org/~laforge/axtp/#related_links
>All in all, its been a productive evening.

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

More information about the Xml-dev mailing list