Welcome to WebmasterWorld Guest from 54.144.57.183

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
posts:367
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
posts:637
votes: 1


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]