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 AMI 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.
+ add to your
Readings [?]
Blogoforum -
Your Reply
del.icio.us