Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Suggestions in Eclipse

 
Matt Thomassan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Matt Thomassan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic