2

Possible Duplicate:
Parsing Huge XML Files in PHP

I want to read wikipedia's xml dump files with PHP. They are gigantic. What should I do?

Community
  • 1
  • 1
ilhan
  • 8,700
  • 35
  • 117
  • 201
  • Well, first things first. Why do you want to do that, and is there a subset of that information you could use instead? – cwallenpoole Jul 11 '11 at 12:53
  • @cwallenpoole, I have limited 3G connecttion. Thus inorder to decrease my bandwith usage I want to read the wiki articles from the my local server. And, the other suff such as WikiTaxi etc did not worked. – ilhan Jul 11 '11 at 13:04

1 Answers1

0

A SAX-based parser should handle large files fine, as opposed to a tree-based parser.

Here, someone has rolled their own.

spraff
  • 32,570
  • 22
  • 121
  • 229