PHP Developers Network

Huge XML file HELP!
Page 1 of 1

Author:  andy1989 [ Wed Nov 02, 2011 3:58 pm ]
Post subject:  Huge XML file HELP!


I really need your help
I have this large 22GB XML file data I scraped and I need to replace some strings in it.
The problem is I tried several of XML editors and only one actually managed to only open the file (EmEditor). When I started to replace, it got stuck and closed (tried it many times).
I think I need a program that only opens part of the file each time replaces the string and then opens the next part and replaces the same string etc...

Can anyone help please?

Thanks in advance ;)

Author:  pickle [ Thu Nov 03, 2011 3:46 pm ]
Post subject:  Re: Huge XML file HELP!

Not sure about what desktop applications you can use. I'd guess pretty much anything will croak on a 22GB file.

There is a PHP library, XMLReader, that iterates through an XML file one node at a time, rather than loading the whole file into memory at once - which sounds like what you want.

Author:  Tipsacon [ Thu Nov 10, 2011 11:12 am ]
Post subject:  Re: Huge XML file HELP!

The problem is in the size of your file (22GB is no joke). Try this XMLReader, it might help you.

Author:  Celauran [ Thu Nov 10, 2011 11:14 am ]
Post subject:  Re: Huge XML file HELP!


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group