可以处理大文件的轻量级 XML 查看器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/308679/
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-06 12:13:05  来源:igfitidea点击:

Lightweight XML Viewer that can handle large files

xmlbrowserviewer

提问by philsquared

There are plenty of "heavyweight" tools such as XmlSpy, which are good for prodding around in xml docs - but often (very often in some cases!) you just want to quickly open and browse an xml doc, and have it pretty printed. Possibly with some basic search functionality (textual is probably fine).

有很多“重量级”工具,例如 XmlSpy,它们非常适合在 xml 文档中使用 - 但通常(在某些情况下非常频繁!)您只想快速打开和浏览 xml 文档,并将其打印出来。可能有一些基本的搜索功能(文本可能很好)。

I usually use a browser such as IE of Firefox for this, but they tend to break down for larger file sizes (I'm often opening files in the 10s of MBs or more).

为此,我通常使用诸如 Firefox 的 IE 之类的浏览器,但它们往往会因较大的文件大小而崩溃(我经常打开 10 MB 或更多的文件)。

I have some ideas about how such a viewer might be implemented, so I'm sure there must be something out there that can do it, but my google-fu is letting me down.

我对如何实现这样的查看器有一些想法,所以我相信一定有什么可以做到的,但是我的 google-fu 让我失望了。

So I thought I'd put it to the hive-mind that is SO to lead the way.

所以我想我会把它放在蜂巢思维中,它是引领潮流的。

Thoughts?

想法?

回答by Ben Bryant

firstobject's 605k download lightweight native Windows free XML editoropens a 50MB file in 1.3 seconds and provides text editing, search, syntax-colored printing, plus tree view and additional XML features including formatting and full-blown CMarkup scripting built in. You can reformat an entire 50MB XML document to a different indentation (takes 3 seconds on a nothing special 2.3GHz/2GB machine).

firstobject 的 605k 下载轻量级原生 Windows免费 XML 编辑器在 1.3 秒内打开一个 50MB 的文件,并提供文本编辑、搜索、语法彩色打印、树视图和其他 XML 功能,包括格式化和内置的成熟 CMarkup 脚本。您可以重新格式化一个将整个 50MB XML 文档转换为不同的缩进(在没有什么特别的 2.3GHz/2GB 机器上需要 3 秒)。

回答by yalestar

XML Copy Editoris perfect for this type of thing.

XML Copy Editor非常适合这种类型的事情。

回答by schnaader

I like the viewer of Total Commanderbecause it only loads the text you actually see and so is very fast. Of course, it is just a text/hex viewer, so it won't format your XML, but you can use a basic text search.

我喜欢Total Commander的查看器,因为它只加载您实际看到的文本,因此速度非常快。当然,它只是一个文本/十六进制查看器,因此它不会格式化您的 XML,但您可以使用基本的文本搜索。

回答by lkurts

Try EditPlus - http://www.editplus.com/

尝试 EditPlus - http://www.editplus.com/

回答by ccpizza

I have tried dozens of XML editors hoping to find one which would be able to do some kind of visualization. The best lightweight viewerfor windows I have found was XMLMarker- too bad the project has been dead for some years now. It is not so useful as an editor, but it does a good job of displaying flat XML data as tables.

我尝试了数十种 XML 编辑器,希望能找到一种能够进行某种可视化的编辑器。我发现的最好的 Windows轻量级查看器XMLMarker——太糟糕了,这个项目已经死了好几年了。它不像编辑器那么有用,但它在将平面 XML 数据显示为表格方面做得很好。

There are tons of free editors that do XML syntax highlighting, including vim, emacs, scite, eclipse (J2EE edition), jedit, notepad++.

有大量免费的编辑器可以进行 XML 语法高亮显示,包括 vim、emacs、scite、eclipse(J2EE 版)、jeditnotepad++

For heavyweight XML features, like XPath support, XSLT editing and debugging, SOAP/WSDL there are some good commercial tools like, XMLSpy, Oxygen, StylusStudio.

对于重量级的 XML 特性,如 XPath 支持、XSLT 编辑和调试、SOAP/WSDL,有一些很好的商业工具,如XMLSpyOxygenStylusStudio

JEditis open-source and also has plugins for XML, XPath and XSLT.

JEdi​​t是开源的,也有用于 XML、XPath 和 XSLT 的插件。

Word-2003 is fairly good for visualizing (but don't use it for editing). Excel-2003 and up also does a good job at visualizing flat XML data and can apply XSL transformations (again, no good as an editor).

Word-2003 非常适合可视化(但不要将其用于编辑)。Excel-2003 及更高版本在可视化平面 XML 数据方面也做得很好,并且可以应用 XSL 转换(同样,不适合作为编辑器)。

回答by utkarshk

http://www.firstobject.com/dn_editor.htmis so far the best and lightest editor available with handful of utilities. I recommend using it - tried with up to 400 MB of files and more than a million records :)

http://www.firstobject.com/dn_editor.htm是迄今为止最好、最轻巧的编辑器,具有少量实用程序。我建议使用它 - 尝试使用多达 400 MB 的文件和超过一百万条记录:)

回答by shezi

回答by user39603

I like Microsoft's XML Notepad 2007, but I don't know how it handles very large files, sorry.

我喜欢Microsoft 的 XML Notepad 2007,但我不知道它如何处理非常大的文件,抱歉。

回答by skaffman

TextPad has a free xmltidy pluginthat pretty-prints your XML. Nice and fast, although TextPad is shareware.

TextPad 有一个免费的xmltidy 插件,可以漂亮地打印您的 XML。尽管 TextPad 是共享软件,但它又好又快。