开发者

Application to view large XML file quickly? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

We have a 120MB XML file that we want to view. Opening it in IE brings my machine to a crawl. I guess IE is loading the whole file into memory.

Is there a tool to view th开发者_如何学运维is in a faster manner? Ideally a Windows GUI based tool. Would be nice if you could drill down through the data by collapsing/uncollapsing elements.

Textpad works but the data isn't formatted in a hierarchical manner. Ie: displays data as:

<TagA><TagB id="a"><TagC>abc</TagC></TagB></TagA>

instead of:

<TagA>
      <TagB id="a">
            <TagC>abc</TagC>
      </TagB>
</TagA>


You say you already use TextPad, so there's a plugin for Textpad called XmlTidy which will reformat the XML into a indented layout. Very handy. You can find it on the Textpad extensions page.


To view an XML file, I would use less(1), even though this doesn't format anything, either (beyond breaking the input into pages). If you want syntax hiliting, try vim.

Apparently, you want to view it in a pretty-printed form. For that, I suggest to use a separate prettifier, as a filter, and pipe its output into less. HTML Tidy can do pretty printing of XML. For less, mere piping would work; for vim, you need to tidy into a separate file (which you can then view with notepad instead, also).


I know that this may sound a bit cheesy, but I've been using Notepad++ for those times when I've needed just a quick&dirty way view huge xml files.

Its main advantage is that it is just so lightweight, basically being just being a fancy version of notepad with a few extras:

  • Syntax highlighting, folding indenting, etc for a whole bunch of filetypes, including xml
  • Multi-view
  • Regexp search/replace
  • A bunch more stuff (like macros) that you'll probably never use.


I've used the free EditPad Lite successfully for that (e.g. opening the StackOverflow db dump (>1 GB file).

It opens the file instantly.


If you have it installed already, Visual Studio works pretty well for viewing XML documents.
Edit > Advanced > Format Document will reformat the layout of a document to make it easier to read (nice for the XML you receive as a single line).
Going to menu item Edit > Advanced > Outlining > Toggle All Outlining can collapse all your nodes to aid in drilling into the sections you need to.
If you don't have it loaded already, not sure if its really worth loading for this.


To view the XML document faster to use UltraEdit or Microsoft Visual Studio IDE.


XMLMax will load your 120Mb xml in a syntx-colored treeview in less than 5 seconds. you can collapse, expand and more with any size xml. google xmlmax editor.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜