From: "Geir Magnusson Jr." <[EMAIL PROTECTED]>
> James Strachan wrote:
> >
> > From: "Geir Magnusson Jr." <[EMAIL PROTECTED]>
> >
> > > I have to admit it was a lot of fun, and I hope I got it
> > > right. I have never had SAX before. Always would reach for JDOM when
I
> > > needed it.
> >
> > You should try dom4j instead, its much better and has integrated XPath
> > support too!
> >
> > http://dom4j.org
> > http://dom4j.org/compare.html
> >
> > But then I'm totally biased, being the primary developer and all... :-)
>
> This looks really great. I will certainly play with it.
>
> I didn't read the bottom of this post, where you fessed up to this
> shameless huckstering :)
Sorry about that, I couldn't resist :)
> and was wondering who the author was - didn't
> find it until I was looking in the Javadoc. It looks really nice - you
> should add a who-we-are section on your site.
Will do, thanks.
> Also, it would be nicer if the release tgz had everything down one
> directory, in a dom4j-0.2 directory, rather than they way it is. For
> some reason, I did a tzf before zxf, and was glad I did.
Good point - will do. The 0.3 release is happening real soon now, this would
be a good time to fix it.
> It is possible to cut it down in size to a limited subset, or does the
> design preclude this? The dom4j.jar is 340K. I am not sure why this
> idea of small XML support is so fascinating to me these days, but it
> is...
The 0.3 release will be smaller, though with the XPath support its always
going to be fairly big, around 3-400K.
(Xerces is 1.5Mb, so 500K is small in todays XML technology ;-)
An actual core without XPath would be smaller, about 170K with Aelfred 2 SAX
parser included - though I'd miss XPath too much.
If tiny XML processing is what you need then I'd go Aelfred 2 + digester =
about 50K.
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com