File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes XML Suggestions in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "XML Suggestions in Eclipse" Watch "XML Suggestions in Eclipse" New topic

XML Suggestions in Eclipse

Matt Thomassan
Ranch Hand

Joined: Dec 23, 2008
Posts: 44
Hi Ranchers,

I am using Eclipse IDE.

What should I do to let eclipse prompt me for xml suggestions?

Eg: When I type <action and then do CTRL+Space, Eclipse should prompt me with all the valid attributes of action tag.

Currently, I am using default XML editor in Eclipse which does not give suggestions.

Thank you.>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

As far as I can tell, the XML editor in Eclipse is buggy as all get-out and can't be expected to do much of anything reliably. I was relieved when a recent update finally kept it from actually corrupting my text whenever I reformatted it.

In theory, you're supposed to be able to set up a DTD/schema library and XML that has the proper definition references in it should prompt. In practice, this often doesn't seem to work for me.

An IDE is no substitute for an Intelligent Developer.
Matt Thomassan
Ranch Hand

Joined: Dec 23, 2008
Posts: 44
Hi Tim,

Thanks for your reply.

I did come across a plugin that works at most times for XML Code Completion.

We just need to put this jar file in the plug in folder of the eclipse.

The jar's name is tk.eclipse.plugin.htmleditor_2.0.6.1.jar.

Hope it helps...

Best Regards
I agree. Here's the link:
subject: XML Suggestions in Eclipse
It's not a secret anymore!