php - Browser Not Reading Entire XML File -


I have an XML file that is written by PHP scripts gathered data from many different RSS feeds for the XML file goes. PHP script is used every 5 minutes by the cron job PHP script may take 5-10 seconds to write an XML file.

Here's the problem: After the XML file is written, I can open it through DreamWorker and read everything OK - but when I send XML files in my web browser (ie or Firefox) URL, I get an "XML parsing error: there was no error in the browser" error. When I make a view> source in the browser, the XML file looks incomplete - but when I open the file directly from the server, it is complete.

Anyone know what is happening here?

Well, it could be be it XML In a different encoding for the header it specifies that this mess may be things.

I recommend that you use to see if the data actually is distributed correctly, also see the XML document and its content encoding, from which Specifies the web server.

What happens if you try to "save as ..." the browser and try to open the results? It may well ignore the encoded content specified in the header, and can simply dump the file onto the disk - if I'm right, then it should be correctly opened in an XML editor.


Comments