Help with XML path views
is there any tool that will give me a view for XML fields like so.
<Service>
<header/>
<Body>
<element1/>
<e开发者_如何学编程lement2/>
</Body>
</Service>
I want something that will show me the a view like so, if i select element1
Service/Body/element1
Is there any tool for eclipse for doing the above.
Thanks.
It'll actually be written in that form on the editor's status line, as well.
Selecting an Element will show you its "path" while selecting an Attribute will include it but swap the icon to the correct one.
If you have the Eclipse J2EE edition, or if you install the Eclipse WTP (Web Tool Platform), you will have a view able to show XML content (it will include the XML component).
(source: eclipse.org)
See:
- News and Noteworthy features for WTP 3.1 (June 2009) Source Editing Service
- other new features for the upcoming WTP 3.2
精彩评论