开发者

xml intellisense with Eclipse?

Please suggest some free tools or some in build feature in Eclipse for intellisense of xml.

I am using Eclipse Europa which is f开发者_如何学Cor EE java developers.

    <?xml version ="1.0" encoding = "UTF-8"?>
        <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jtestcase.sourceforge.net/dtd/jtestcase2.xsd">
        </tests>

Xml code above is part of xml file i am working upon. I am expecting eclipse to suggest me tags based upon xsd specified above. I am using ctrl+space for suggestion of new tag. Please suggest if i am using wrong key for intellisense or am i missing some tool or plugin.

Thanks


It works for me - I get prompted to enter a or element. I'm using Eclipse Helios. I would have guessed that Europa had the same functionality, although I wouldn't put all my money on that.

Is it possible that you're not using the XML editor, that instead you're opening up the doc with a different Eclipse editor? The icon in the editor tab should have an "X" (for "XML") in it. (Again, I'm not sure how far back in versions that icon is available.)

You could try right-clicking on the the doc in the Package Explorer, and seeing what editors pop up in the "Open With..." submenu, and picking the XML editor, just to make sure.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜