File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "XML Suggestions in Eclipse" Watch "XML Suggestions in Eclipse" New topic
Author

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: 16303
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: http://aspose.com/file-tools
 
subject: XML Suggestions in Eclipse