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

XML as an alternative to Object Serialization?

  • From: Tyler Baker <tyler@i...>
  • To: xml-dev@i...
  • Date: Tue, 13 Jan 1998 17:59:27 -0500

object serialization xml
I have had an idea as a solution to a problem I have, but my problem is
much more limited than this idea...

One thing I need to know is if anyone is doing any work on higher-level
API's for creating XML documents, DTD's etc.  I can do this myself as
writing an XML Formatter is a hell of a lot easier than writing an XML
Parser, but nevertheless I have not seen any tools like this that I am
aware of (I think MSXML might have something like that but I do not
know).  I just want a simple API to make method calls which spits stuff
out to a java.io.OuputStream.

Now my idea rests upon the power of Reflection in JDK 1.1+.  I have had
experience in using Reflection to auto-map Java class files and
interfaces to a relational database by auto-generating SQL create
scripts, and I had the idea that XML could be used as an alternative to
Object Serialization for small to medium sized content.  XML of course
is much fatter as a persistence framework than something like Object
Serialization but for web browsers and the web in general, embedding
this info via XML in a page may make more sense in some circumstances,
especially since you would get the added boon of your Java Object being
cached on the users computer.

Now doing a good implementation of this would require a bit of work, and
probably the best way of doing this might involve screwing around with
the Externalizable interfaces, but I just wanted to get some idea from
other people as to whether or not they think that this would be a good
idea, but more importantly a useful idea.  I am an independent
programmer, so I can work on this from time to time when my other
projects are not so time consuming, but this would not be a trivial task
to implement even though I have a pretty good idea of how to do it (or
at least an idea of a working implementation).  Considering the success
that SAX has had to date in its efficiency of being moved along, I
thought that this sorta thing might warrant some attention.

Any comments?

Tyler


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.