[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: Tim Bray <tbray@t...>
  • To: xml-dev Mailing List <xml-dev@i...>
  • Date: Wed, 17 Dec 1997 10:33:08 -0800

event based apis xml
At 09:38 PM 16/12/97 -0500, David Megginson wrote:
>After careful thought, I am fairly certain that I would be willing to
>accept the following simple event-driven API for Ælfred.  

I'd be willing to commit to signing up to do this for Lark, given
the following changes:

>  public void 
>    startDocument (XmlProcessor processor, String pubid, URL sysid);

Question: what if there's no <!DOCTYPE?  And if there is, you might as
well throw in the root doctype.

>  public void
>    startProlog (XmlProcessor processor);
>  public void 
>    endProlog (XmlProcessor processor);

Lose these; they have no place in this API.  You want this kind of stuff,
use Lark or AElfred or whatever.

>  public void 
>    processingInstruction (XmlProcessor processor, String target, String data);

Lose this.

>  public void 
>    error (XmlProcessor processor, String message, URL url, int line);
>}

Have to add the entity ID as an argument.  No point giving the line 
number if you don't know what it's in.

>The processor itself could implement the following interface (very
>Thread-oriented and Bean-like):

And one last thing: if you use URL, then you have to do a new URL()
which does (I think) at least some syntax checking... is this appropriate?
Why not just pass it as a string? -Tim

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.