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?


5 Answers 5


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

  • +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, 2010 at 13:31
  • I can vouch for opening files larger than a gigabyte in N++ too. Jan 30, 2011 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.


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

  • Vim is really great :) Feb 28, 2010 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.


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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .