windows XML 编辑/查看软件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1625/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:04:28  来源:igfitidea点击:

XML Editing/Viewing Software

windowsxmllinux

提问by dragonmantank

What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files.

推荐使用什么软件来处理和编辑大型 XML 模式?我正在寻找有助于处理巨大 XML 文件的 Windows 和 Linux 软件(不必是跨平台的,只需要两者的建议)。

采纳答案by Justin Standard

I may be old fashioned, but I prefer my text editor.

我可能是老式的,但我更喜欢我的文本编辑器。

I use emacs, and it has a fairly decent xml mode.

我使用 emacs,它有一个相当不错的 xml 模式。

Most good text editors will have decent syntax hi-lighting and tag matching facilities. Your IDE might already do it (IntelliJ idea does, and I believe Eclipse does as well). Good text editors will be able to deal with hugefiles, but some text editors may not be able to handle them. How big are we talking about?

大多数优秀的文本编辑器都有不错的语法高亮和标签匹配功能。您的 IDE 可能已经做到了(IntelliJ idea 做到了,我相信 Eclipse 也做到了)。好的文本编辑器将能够处理文件,但某些文本编辑器可能无法处理它们。我们在谈论多大?

回答by Nidonocu

For Windows, I found Microsoft's own free XML Notepad 2007to be a great simple to use editor with a nice selection of features. Used it for both reviewing my XML output when developing and editing broken iTunes' libraries. ;)

对于 Windows,我发现 Microsoft 自己的免费XML Notepad 2007是一个非常简单易用的编辑器,具有许多不错的功能选择。在开发和编辑损坏的 iTunes 库时使用它来检查我的 XML 输出。;)

Requires .net 2.0

需要 .net 2.0

回答by pix0r

I agree that your text editor is probably your best bet. I do know some people who swear by XMLSpy, if you need something that's tailored specifically for dealing with XML files in a visual way. I bet you could find some F/OSS work-alikse but I'm not aware of any.

我同意你的文本编辑器可能是你最好的选择。我知道有些人对XMLSpy发誓,如果您需要专门为以可视方式处理 XML 文件而定制的东西。我敢打赌你可以找到一些 F/OSS work-alikse,但我不知道。

回答by Ash

FirstObject XML Editor. http://www.firstobject.com/dn_editor.htm

FirstObject XML 编辑器。 http://www.firstobject.com/dn_editor.htm

Its free, written in C++, optimized for working with very large xml files.

它是免费的,用 C++ 编写,针对处理非常大的 xml 文件进行了优化。

While it is relatively limited in functionality, it can load 100MB+ unformatted files in seconds, indent them and locate specific elements using the tree view. By using the 'Refresh' option you can also synchronise the tree with the text view.

虽然它的功能相对有限,但它可以在几秒钟内加载 100MB 以上的未格式化文件,缩进它们并使用树视图定位特定元素。通过使用“刷新”选项,您还可以将树与文本视图同步。

It's in the UNIX spirit of having a simple tool doing a specific job very well.

它本着 UNIX 精神,即拥有一个可以很好地完成特定工作的简单工具。

回答by Boris Terzic

You need at least a decent text editor as a baseline, emacs with nxml modeas mentioned before is a very good choice. However as the schema becomes larger and larger you may lose the overview, especially when you author an XML Schema document which can be very verbose. You'll need some sort of visualization: XML Spy is ok, Oxygen is great but expensive, but as it turns out, on Windows, you have almost all needed features in XMLPadwhich is freeware.

你至少需要一个像样的文本编辑器作为基线,前面提到的nxml 模式的 emacs是一个非常好的选择。然而,随着模式变得越来越大,您可能会失去概览,尤其是当您编写可能非常冗长的 XML 模式文档时。您需要某种可视化:XML Spy 还可以,Oxygen 很棒但价格昂贵,但事实证明,在 Windows 上,您几乎拥有免费软件XMLPad 中所有需要的功能。

When you start editing instance XML documents (and even editing XML Schemas) you need on the fly validation against a schema and if possible auto-completion of attributes and elements. Emacs only supports on the fly validation and auto-completion with a relax NG based schema (but any XSD can be converted to a relax NG schema).

当您开始编辑实例 XML 文档(甚至编辑 XML 架构)时,您需要针对架构进行动态验证,并在可能的情况下自动完成属性和元素。Emacs 仅支持使用基于放松 NG 的模式的动态验证和自动完成(但任何 XSD 都可以转换为放松 NG 模式)。

If you have any choice in the matter, consider using Relax NGas your schema syntax, it is much more readable and maintainable.

如果您对此有任何选择,请考虑使用Relax NG作为您的架构语法,它更具可读性和可维护性。

回答by James Sulak

I work a lot with XML, and have found Oxygento be a great editor. It's cross-platform and has a graphical schema editor, but since I use DTDs and not schemas, I can't vouch for the schema editor's quality. The rest of the editing package (such as the XML editor and XSLT debugger) is solid, so it could be worth a try.

我经常使用 XML,并且发现Oxygen是一个很棒的编辑器。它是跨平台的并且有一个图形模式编辑器,但是由于我使用的是 DTD 而不是模式,我不能保证模式编辑器的质量。编辑包的其余部分(例如 XML 编辑器和 XSLT 调试器)是可靠的,因此值得一试。

回答by Matt

Altova's XMLSpyis probably the best available. It offers different views of your data/schemas, XPath tools and produces good diagrams, among other things. It does cost quite a bit though. It's a mature product, so you don't tend to run into limitations as quickly as you do with some other tools.

Altova 的XMLSpy可能是最好的。它提供数据/模式、XPath 工具的不同视图,并生成良好的图表等。不过确实要花不少钱。它是一个成熟的产品,因此您不会像使用其他工具一样迅速遇到限制。

Liquid XMLis a pretty good, but relatively new alternative. It's a nice app to use and there's even a free version available! This is a tool worth keeping an eye on.

Liquid XML是一个不错的选择,但相对较新。这是一个很好用的应用程序,甚至还有一个免费版本!这是一个值得关注的工具。

Both of these products have a handy feature which produces sample XML files based on your schema.

这两种产品都有一个方便的功能,可以根据您的模式生成示例 XML 文件。

In contrast, Oracle's JDeveloper (based on Borland Jbuilder, I believe) tries to provide a decent schema editor, but falls short in that it sometimes produces invalid schema files. I stopped using it soon after noticing this.

相比之下,Oracle 的 JDeveloper(我相信基于 Borland Jbuilder)试图提供一个不错的模式编辑器,但它有时会产生无效的模式文件。注意到这一点后,我很快就停止使用它。

I highly recommend checking out IBM's XML Schema Quality Checker. This command line tool validates your schema against WC3's XML Schema language. This is a good idea even if you've built your schema using another tool.

我强烈建议您查看 IBM 的XML Schema Quality Checker。此命令行工具根据 WC3 的 XML 架构语言验证您的架构。即使您使用其他工具构建了架构,这也是一个好主意。

回答by Alex Ott

I use nxml-mode in GNU Emacs for editing xml, including very big files. And i use it for a long time - it quick, provide on-the-fly validation of xml , and provide completion functionality for tag & attributes names

我在 GNU Emacs 中使用 nxml-mode 来编辑 xml,包括非常大的文件。我使用它很长时间 - 它很快,提供 xml 的即时验证,并为标签和属性名称提供完成功能

回答by alexandrul

I am using Cooktop(also available on tucows), and I'm very happy about XPath testing feature.

我正在使用Cooktop(也可在tucows使用),我对 XPath 测试功能非常满意。

  • Cooktop is an editor and development environment for XML, DTD, and XSLT documents
  • Cooktop is a Windows application
  • Best of all, it's free!
  • Cooktop 是 XML、DTD 和 XSLT 文档的编辑器和开发环境
  • Cooktop 是一个 Windows 应用程序
  • 最棒的是,它是免费的!

Features

特征

  • Color-coded XML, DTD, and XSLT editing
  • Check well-formedness and validate
  • Stylesheet testing with almost any XSLT engine
  • XPATH testing
  • Customizable "Code Bits" library
  • XML formatting via Tidy
  • Small download, small footprint
  • 颜色编码的 XML、DTD 和 XSLT 编辑
  • 检查格式良好并验证
  • 使用几乎所有 XSLT 引擎进行样式表测试
  • XPATH 测试
  • 可定制的“代码位”库
  • 通过 Tidy 格式化 XML
  • 下载量小,占用空间小

回答by Matt Large

I highly recommend Stylus Studioif you have any need for a long term broadly capable XML IDE. I've used it mostly for XSLT development but it supports development of almost everything XML related you would want to do. It's Windowsonly (very annoying).

如果您需要一个长期的、功能广泛的 XML IDE,我强烈推荐Stylus Studio。我主要将它用于 XSLT 开发,但它支持开发您想做的几乎所有与 XML 相关的事情。它仅适用于Windows(非常烦人)。