-
Enhancement
-
Resolution: Future Project
-
P3
-
5.0
-
generic
-
generic
Today, JAXP DOM nodes don't really implement toString() in a meaningful way for users.
For example, you get something like:
[#document: null] (for document)
Or:
[myElement: null] (for an element)
Given the nature of toString() and debugger support, the toString() method should assist
developers to debug problems.
For this, it would be really really nice if this prints out an XML fragment.
Currently, to print out an XML representation of a DOM tree, you'd need to write a serious
amount of code (I think the shortest is to use identity Transformer), and even the shortest
one is not practical to do from inside a debugger.
For example, you get something like:
[#document: null] (for document)
Or:
[myElement: null] (for an element)
Given the nature of toString() and debugger support, the toString() method should assist
developers to debug problems.
For this, it would be really really nice if this prints out an XML fragment.
Currently, to print out an XML representation of a DOM tree, you'd need to write a serious
amount of code (I think the shortest is to use identity Transformer), and even the shortest
one is not practical to do from inside a debugger.