开发者

XML editor with intellisense/autocomplete based on XML Schema

I'm looking for an XML editor that can provide auto completion and validation based on an XML schema. The target platform is Linux, with Win/OSX support desirable but optional.

From this question I'm aware that this is supported in Visual Studio. There are also several commercial XML Editors (oXygen, Liquid XML studio) that support this feature. I persona开发者_StackOverflow社区lly don't mind paid apps, but for this instance I'm looking to recommend the editor to a group of users, and requesting that they pay for an app will not go down well.

Any suggestions?

p.s. I had a quick stab at using Komodo Edit but could not get it to autocomplete based on a custom schema. Any tips on getting this working would help too.

(solved) comments:

Using Eclipse with the Eclipse XML Editors and Tools plugin works like a charm. This solution has the added bonus of working on all target platforms. Thanks @xcut.

This answer on SU states that Eclipse can do so without plugins but I could not replicate the claim.

As for my attempts at using Komodo Edit, it is apparently possible to do so if one creates and registers an XML catalog. However I could not get it working with XML schemas and all official documents from ActiveState specifically mentions DTD and RelaxNG only.


Try eclipse with eclipse Web Tools installed. As far as I know, that editor has auto-complete.

Of course, a full eclipse install might be overkill...


"XAmple XML Editor project introduces a java Swing based XML editor that analyzes a given schema and then generates a document-specific graphical user interface. Unlike other XML editors, the XAmple XML editor GUI exposes not just a tree representation of the XML document but rather a logical combination of the XML document and respective XML Schema. The user interface of the XML editor is highly logical and intuitively comprehensible. To be able to prepare valid XML documents of significant complexity, a user is not required to be familiar with XML and XML Schema languages and to have any a-priori knowledge about the documents structural requirements."

I've tried it, and even my non-technical boss likes it.


IntelliJ Idea Community Edition comes with a good XML editor (enabled by default). It supports auto-complete based on the provided schema. Unfortunately it is an IDE as well as Eclipse, so it will be hard to make business users to use it.

Also you can use Ctrl-Q to view xs:documentation embedded into XML Schema.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜