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?

link|improve this question

57% accept rate
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
feedback

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

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

5 Answers

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.

link|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
feedback

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.

link|improve this answer
feedback

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

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

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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