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

Re: YAXPAPI (Yet Another XML Parser API)- an XDEV proposal

  • From: Peter Murray-Rust <peter@u...>
  • To: xml-dev@i...
  • Date: Sun, 14 Dec 1997 00:12:36

xml parser with swing
At 14:00 13/12/97 -0800, Don Park wrote:
>Tim and Peter,
[...]
>
>IMHO, it would be major mistake to combine XML parser client API and service
>provider API.  I would much rather see something like Swing's TreeModel
>interface used as XML parser service provider API with opaque objects.

I think it's clear that we are not going to see just one API. Your
suggestion, the grove plan, Xapi-J are all viable ways forward. The point
is that Tim, DavidM, Norbert and I have all - independently - come up with
fairly simple models for APIs which have a large degree of communality.
They have the merit of being fairly simple for newcomers. None are required
to be tree-structured.
>
>public interface XmlTreeModel {
>    public Object getRoot ();
>    public Object getParent (Object child);
>    ...
>}
>
>public interface XmlEventModel {
>    public String getElementName (Object event);
>    ...
>}
>
>public interface XmlEventProducer {
>    public void addConsumer (XmlEventConsumer c);
>    public void removeConsumer (XmlEventConsumer c);
>    ...
>}
>
>public interface XmlEventConsumer {
>    public void elementStarted (XmlElementEvent evt);
>    public void elementEnd ed (XmlElementEvent evt);
>    ...

I have looked at TreeModel in Swing and even implemented a simple JUMBO
display on it. I have to confess that, being a Dumb Browser Hacker, I found
it quite tough going. If the only interfaces to XML parsers are based on
this level of abstraction a lot of people will find them hard.

WE have been part way down this road before - look through XML-DEV
discussions 6+ months ago. I think it's essential we home in on a
moderately simple parser NOW - we know what we need to do - we simply need
to agree on the precise components and the terminology. 

[...]
>
>>I acknowledge this is grossly insufficient for basing an editor on. You
>want
>>that, use the DOM.  Only a few choices have design implications:
>

All I want is to get the DOCTYPE stuff from the file. AElfred now provides
exactly what I want - we just need to agree it.

>
	P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

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.