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

Re: RFC: Simple XML Event-Based API for Java

  • From: "Michael Kay" <M.H.Kay@e...>
  • To: "xml-dev Mailing List" <xml-dev@i...>
  • Date: Thu, 18 Dec 1997 11:35:45 -0000

java convert date
I like the way this discussion is going. I don't want to be on anyone's
critical path, but I'll be trying out these interfaces (as an "application
writer") if I can find the time.

I've written a very simple application using AElfred: a converter from an
XML-based encoding of genealogical data back to the "standard"
GEDCOM encoding. (The converter the other way was in Visual Basic,
I will probably rewrite it in Java now I'm getting the hang of it.) It is
beautifully concise, just 17 lines of code apart from the boilerplate
which was copied straight from one of the AElfred sample apps,
and will be even simpler with the proposed revisions to the
interface.

To do anything more interesting with the data (i.e. anything that is not
a single-pass operation) I need a tree representation. Yes, I don't
want to build my own. The DOM seems to be the right solution for 
this. The idea of having a choice of parsers with the same event
interface, and a choice of tree-builders that build the same DOM
interface using any of the parsers, is very appealing.

(What I haven't really worked out yet, and would appreciate advice
on, is how to turn the XML objects into a set of genealogical
objects, with methods like getFather(), getMother(), getSpouses(). Do
I need to build a separate tree with the data organised differently,
or should I write methods/functions that operate on the nodes in 
the XML tree? I guess the chemists must have similar problems.)

The other thing I need, which has not really been fully addressed,
is access to the DTD. (Not for this application, which I am doing
just as a learning exercise, but for my real job.) I think we need
some kind of extension to the DOM to provide this.

Regards and thanks for all the good work,
Mike Kay, ICL


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.