sign in | register

Blogoforum Blogoforum - The JFC changed in 1.5, .useful needs a tweek

recent > programming > java > computer > swing > jtree and tree > dotuseful

Bee-u-t-ful code I must first comment. Wow.

I was trying to use the AutomatedXMLTree.java. I note the date of posting this code is 2004. Evidentially, XML is a moving target and moving fast. Using the XMLTree code in my choice of JDK 1.5 or 1.6, I get ---> [#document: null]. Because of all the different tools required, the choice of parser, the methodology, the JFC's latest changes, the w3org rewriting the xml specs, ad infintim, it strikes me there is a light year's worth of difference between code that ran in 1.42 and code that runs in 1.5.

I searched the Sun forums and I find this insight:

/* The parse() method doesn't return null,
* "[#document: null]" is what's returned by toString()
* method when you print it.
* Call getDocumentElement() method for
* the document returned by parse() to get
* the root node of the document.
*/

Because .toString() is a method of everything JFC (for instance, any System.out.println() ) it is difficult for me to discover where in the .useful API I should be making modifications.
May 17, 2007 9:46 AM
+ add to your Readings [?]

Your Reply Your Reply

have your browser's cookies enabled
! You are not signed in. Sign in or Register to get the post published into your own blog.






(html will be shown as text)
Verification Image


type the characters you see in the picture above
Spam links posted here may be put into "spam" category which may result in your site rank decreased by Google
wrong? assign your keywords [?]
Google

Explore Blogoforum - The Better Forum Experiment

Blogoforum is looking for UI Designer.

Tell the World

Blogoforum will become more useful as its user base grows. If you think the idea is interesting, bookmark it on del.icio.us and tell your friends.