22 comments

On Wed, 09 Apr 2003 07:05:13 +0000, Michael Seele wrote:

hi, why do you use JDOM beta 7 for IDEA and not JDOM beta 8??? THANKS


Maybe cause they've not yet updated it :P???

0

On Wed, 09 Apr 2003 08:06:07 +0000, Michael Seele wrote:

it's out since 28.03.2002 if my infos are
write(http://www.jdom.org/news/index.html)!!!


Maybe they're waiting to make sure it doesn't cause any problems or
anything... shrug

0

you've wrote the JDOM beta 8 release date(28.03.2002)???

0

We have tried that out but faced up with terrible memory and CPU performance
on some relatively large (>2MB) files.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Michael Seele" <jiveadmin@jetbrains.com> wrote in message
news:31421912.1049871913948.JavaMail.jrun@is.intellij.net...

hi, why do you use JDOM beta 7 for IDEA and not JDOM beta 8??? THANKS



0

On Wed, 09 Apr 2003 14:30:36 +0400, Maxim Shafirov wrote:

We have tried that out but faced up with terrible memory and CPU performance
on some relatively large (>2MB) files.


See - I knew they had a reason :P

0

do you know when/if they release the version 1.0? or is the development finished? is jdom faster as the jdk xml api?

0

In fact that's not their fault. But a popular StringBuffer issue (I think it
was already discussed on javaLobby several times).

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

It's just easier to use. Especially if you try to modify XML.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

have you ever seen electricXML( http://www.themindelectric.com/ )? in a good benchmark ( http://www.sosnoski.com/opensrc/xmlbench/results.html ) it works fatser and better tham jdom!!!

0

do you work with dom or sax???

0

hi, why do you use JDOM beta 7 for IDEA and not JDOM beta 8??? THANKS


Well, but how does it affect you?

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Michael Seele" <jiveadmin@jetbrains.com> wrote in message
news:31421912.1049871913948.JavaMail.jrun@is.intellij.net...

hi, why do you use JDOM beta 7 for IDEA and not JDOM beta 8??? THANKS



0

The latest CVS code from jdom.org contains a workaround for he StringBuffer memory leak. Word on the jdom interest list seems to indicate that a beta 9 release containing this fix (among other things) is imminent.

0

Mike Aizatsky said (concerning JDOM b8):
-


In fact that's not their fault. But a popular StringBuffer issue (I think it
was already discussed on javaLobby several times).
-



Here is the link to the StringBuffer bug:

Memory leak in use of StringBuffer.toString()

http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Workaround:

Don't reuse StringBuffers. If you do reuse them, check their capacity and make
sure that you aren't making tiny Strings from huge StringBuffers.

I say:

VOTE FOR IT !!! (This bug has been around since Jul 31, 2002, and sun won't fix it !)

0

dan wrote:

VOTE FOR IT !!! (This bug has been around since Jul 31, 2002, and sun won't fix it !)


I quote from the bug report:

"The old fix cannot be reinstated because it changes the backing array
size in circumstances in which it shouldn't (as well as sometimes when
it is desired). Other fixes have been considered but rejected because of
performance impact. This will be fixed in Tiger by the removal of
String/StringBuffer sharing.
xxxxx@xxxxx 2002-12-05"

The last sentence indicates that they will fix it but since it's not a
trivial fix, it's planned for the next major release, codenamed Tiger.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

i only want to know if you have good reasons for using v7 because i would upgrade in my app to v8 and i search for reasons against v8!!!

0

Beta 8 is the latest "official release" from JDOM,
but the CVS code has been patched a long time ago
to include a workaround the the "StringBuffer reuse" issue.

They are planning a beta 9 soon, and they are establishing a plan for the 1.0 release:
http://lists.denveronline.net/lists/jdom-interest/2003-April/thread.html

BTW, Dom4J (which I use in my projects) just released 1.4.
We had to wait a long time before 1.4 was released, but the CVS code base already provided all the wanted fixes...

DOM4J like JDOM are maintained by folks with a time-consuming day job, and although the work on the CVS base is active, there is not much time to deliver real up-to-date quality documentation and strong release plans...

Do you guys out-there use the W3C-DOM model provided by Xerces ?

I personnaly use Xerces SAX + Dom4J + Jaxen with most of my XML projects.

(SUN uses Dom4j in their JAXP implementation)

Dan/

0

Namespace handling in electricXML is hopelessly broken.

There is a 3rd alternative whose name escapes me at the moment.

Michael Seele wrote:

have you ever seen electricXML( http://www.themindelectric.com/ )? in a good benchmark ( http://www.sosnoski.com/opensrc/xmlbench/results.html ) it works fatser and better tham jdom!!!


0

Can you provide any feedback on the relative strengths of Dom4J vs.
ElectricXML/JDOM?

I am not very impressed with the design of JDOM (why aren't the various
objects derived from a common base class). And ElectricXML is nice
except that their handling of namespaces is completely broken.

dan wrote:

Beta 8 is the latest "official release" from JDOM,
but the CVS code has been patched a long time ago
to include a workaround the the "StringBuffer reuse" issue.

They are planning a beta 9 soon, and they are establishing a plan for the 1.0 release:
http://lists.denveronline.net/lists/jdom-interest/2003-April/thread.html

BTW, Dom4J (which I use in my projects) just released 1.4.
We had to wait a long time before 1.4 was released, but the CVS code base already provided all the wanted fixes...

DOM4J like JDOM are maintained by folks with a time-consuming day job, and although the work on the CVS base is active, there is not much time to deliver real up-to-date quality documentation and strong release plans...

Do you guys out-there use the W3C-DOM model provided by Xerces ?

I personnaly use Xerces SAX + Dom4J + Jaxen with most of my XML projects.

(SUN uses Dom4j in their JAXP implementation)

Dan/


0

my $.02: i started out using jdom a couple of years ago (after reading McLaughlin's "java and xml"), but switched to dom4j within the past few months.

i've been very impressed with dom4j. it's definitely more complex, but once you learn where everything is, i think you get a lot more bang for the buck. i've really enjoyed the xpath support among other things.


this article is old, but still interesting:

http://www-106.ibm.com/developerworks/xml/library/x-injava/index.html

there's also this link (though obviously biased)

http://dom4j.org/compare.html

0

"...but once you learn where everything is, i think you get a lot more bang for the buck"

What "buck" would that be? ;o)

Since we're talking about XML parsers, has anyone used XMLPull ( http://www.xmlpull.org )? I haven't used it myself... but I understand that it's really small, extremely fast and has a very low footprint. It doesn't do what JDom or Dom4J or DOM does (I don't think you can write XML with it) but for parsing it's supposedly really good.

Kind regards, Stefan.

0

Please sign in to leave a comment.