When you open a XML in Eclipse, the content can be shown in as a tree structure like
SwingX has a JXTreeTable, it's based on but much improved over the oldish examples (links to sun code/article) cited by @mKorbel