Browser Not Reading Entire XML File

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-17T16:18:46Z Indexed on 2010/05/17 16:20 UTC
Read the original article Hit count: 244

Filed under:
|

I have an XML file that is written by a PHP script. The data for the XML file is gathered from several different RSS feeds. The PHP script is invoked every 5 minutes by a Cron Job. The PHP Script takes maybe 5-10 seconds to write the XML File.

Here's the problem: After the XML file is written, I can open it through DreamWeaver and read everything just fine - but when I enter the XML File's URL into my Web Browser (IE or Firefox), I get a "XML Parsing Error: not well-formed" Error in the Browser. When I do View > Source in the Browser, the XML file appears incomplete - but when I open the file directly off the server, it is complete.

Anyone know what's going on here?

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml