[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] re: XML Documents Are Objects! (or "Killing OO Softly With XML")
Paul, I've been proposing effectively the same thing on the java-xml-interest@o... list. I've been using the term COIN to express this concept--a coin has two faces, an XML element and a Java Object. Bill For information about java-xml-interest, see http://www.camb.opengroup.org/~laforge/jxml.html >>From java-xml-interest-request@o... Mon Mar 9 20:03:05 1998 >Return-Path: <java-xml-interest-request@o...> >Resent-Date: 10 Mar 1998 01:03:02 -0000 >Resent-Cc: recipient list not shown: ; >X-Sender: laforge@p... >Date: Mon, 09 Mar 1998 20:09:11 -0500 >To: java-xml-interest@o... >From: Bill la Forge <b.laforge@o...> >Subject: State of Coins >Resent-Message-ID: <"27dFJtr0wrF.A.4bH.CFJB1"@postman.opengroup.org> >Resent-From: java-xml-interest@o... >X-Mailing-List: java-xml-interest:archive/latest/104 >X-Loop: java-xml-interest@o... >Resent-Sender: java-xml-interest-request@o... > >The tests for coins now successfully executes the following XML: > > <PROGRAM START="HERE"> > <COIN TYPE="TEST" CLASS="TestFace"/> > <TEST ID="HERE" XYZ="123"/> > </PROGRAM> > >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. > >>>>Gavin: > >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. >Bill > > 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|