Parsing Large XML files using XMLReader

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SEO London
    New Member
    • May 2007
    • 1

    #1

    Parsing Large XML files using XMLReader

    Hi all,

    I have been trying to parse a 250MB xml file using PHP5's XMLReader.

    This is working perfectly for small files but stops mid process (without any error messages) after about 10 seconds when processing test xml files around 16MB.

    Has anyone got any suggestions??

    Thanks in advance
  • dorinbogdan
    Recognized Expert Contributor
    • Feb 2007
    • 839

    #2
    Welcome to TheScripta TSDN....

    I will move the thread to the PHP forum, they may help better.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      This could be caused by the max upload size, the max post size, the max size that php is allowed to take up in memory, or the page timeout. Check these setting with phpinfo() to figure out where you are being restricted.


      Originally posted by SEO London
      Hi all,

      I have been trying to parse a 250MB xml file using PHP5's XMLReader.

      This is working perfectly for small files but stops mid process (without any error messages) after about 10 seconds when processing test xml files around 16MB.

      Has anyone got any suggestions??

      Thanks in advance

      Comment

      Working...