[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
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! 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
|