Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

While loading a 250 MB XML file in Microsoft's XML Notepad, I get an "OutOfMemoryException". Is there any way to increase the size limit?

Is there any other tool that can load large XML files?

share|improve this question

migrated from stackoverflow.com Feb 24 '10 at 14:16

This question came from our site for professional and enthusiast programmers.

    
I asked a somewhat similar question over a year ago - you might find something useful there: stackoverflow.com/questions/308679/… –  Phil Nash Feb 24 '10 at 9:01

5 Answers 5

up vote 1 down vote accepted

Editors like Notepad++ or UltraEdit might help. However I don't have a reply for increasing the memory limit.

share|improve this answer
    
+1 for ultraedit. I've opened multi-gigabyte files in it before. Scrolling long distances is a bit sluggish, but aside from that, it's perfect. –  nickf Feb 24 '10 at 13:31
    
I can vouch for opening files larger than a gigabyte in N++ too. –  Matthieu Cartier Jan 30 '11 at 10:18

Any number of 3rd party text editors will load large files as will Visual Studio (although it gets a bit slow if the XML file are large because of the work its doing to build the document model).

You can also use WordPad which doesn't have the same size limits - but its less than ideal as a text editor.

My text editor of choice is TextPad - but there are a lot of choices.

share|improve this answer

You might want to try Vim (or the GUI counterparts GVim or Cream). Vim uses buffers and never loads the entire file into memory.

share|improve this answer
    
Vim is really great :) –  nXqd Feb 28 '10 at 1:22

XML Notepad is a .NET application and is marked as "Any CPU" (I have downloaded XML Notepad and checked it with corflags.).

Thus if you run it on a 64 bit version of Windows with enough RAM then the OutOfMemoryException exception should not happen.


Update: It works! (almost)

I tried it on a 410 MB XML file. Private Bytes went to 6.7 GB before XML Notepad ran out of memory on my 8 GB system. So it is possible to break the 1.4 GB barrier and the 250 MB XML file can probably be openened.

I also tried to open a 97 MB XML file. XML Notepad did not run out of memory and opened fine. Private Bytes was 719 MB.

share|improve this answer

XMLMax will handle it easily and put it in a treeview in about ten seconds.

What Problems Does XMLMax Solve?

Too Big. If other software, or processes such as ETL, cannot open XML because it is too large, XMLMax will split XML into smaller, well-formed XML files. It provides several split options. Quickly and easily split large sitemap files.Also see our XmlSplit tool.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.