Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Parsing large XML files

How to do this?

3:34 am on Mar 27, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 5, 2002
votes: 0

Hi there,

I have tried several ways to load a large XML file (6MB) into an array using PHP. Many approaches work fine on a snippet (=small chuck of the same file), but don't do anything with the larger XML file. I am lost. Is there anyone who has experience with this?

7:43 pm on Mar 30, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
votes: 1

Are you parsing the xml file for browser display? If so, you might look into using an xsl stylesheet to apply your transformation against the xml file.

I did a quick search and found an article that might help you do this.
XML/XSL transformations with PHP [zend.com]