I'm trying to use TreeWalker to simply print out each element name and I keep getting this error message. java.lang.ClassCastException at AccessElement.parseXML(AccessElement.java:35) at AccessElement.main(AccessElement.java:17) Here is the code:
Joined: Mar 17, 2000
I haven't used TreeWalker my self, but it appears that the following casting is illegal. ((DocumentTraversal)document document is of type Document but can you cast that to DocumentTraversal type?
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Jan 21, 2003
The sad thing about this is this is parts from an example in a Book I bought. Go Figure. Thanks for your help. I'll try to figure it out.