Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Parsing large XML files

How to do this?

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

10+ Year Member



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)

10+ Year Member



designaweb,
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]