[jdom-interest] Streaming JDOM

Gregor Zeitlinger gregor at zeitlinger.de
Sun Jul 23 04:01:52 PDT 2006


On 7/18/06, Tatu Saloranta <cowtowncoder at yahoo.com> wrote:
> This is a reasonable direction to take. I wrote
> StaxMate (http://woodstox.codehaus.org/StaxMate),
> which does use similar api.
Yes, it is indeed similar, but do you have examples?
I could not find getAttribute(name)

I tried to make my API as similar as possible to JDOM, because
- I think JDOM is easy to use
- the API should be easy to learn for JDOM users
- I was hoping it might be included in JDOM

Regarding the last issue:
I am wondering if the JDOM implementors do not want to have a
streaming API or if this is just the wrong mailing list to ask this
question.
Can anybody enlighten me?

> At any rate, I have noticed that for my own projects I
> seldom use "raw" Stax cursor (and never event) api --
> StaxMate wrappers add neglibible overhead, and make
> things convenient enough to make me productive.
I think there is no reason to make Stax as part of the name.
Stax is an implementation technique for your API.
(I have used Stax for my API as well, but dropped it since it wasn't
faster than SAX)

> For input (parsing) side skipping of sub-trees and
> matching end elements is the first most obvious
> benefit, and for output, similarly being able to pass
> "context", and passing first-class namespace objects
> is nice.
same for me

--
Gregor Zeitlinger
gregor at zeitlinger.de


More information about the jdom-interest mailing list