Jump to content

PHP 4 XML Parser : Buffer Problem


RedBoffin

Recommended Posts

Hello  :)

 

I have a large xml file to parse.

 

Using the built-in parser and some tutorial code, I have built a parser which reads this xml data in successfully except for one small problem - at the point where the buffering occurs, a few characters of data are lost! Then the xml data is parsed correctly until the buffer is reached again... and a few characters of data are lost... and so on throughout the document.

 

I have isolated the problem to be the buffer. Changing the buffer size does not solve the problem - this just changes the points in the xml file where the data loss occurs. Has anyone else run into this problem with PHP 4's xml buffering and (hopefully) found a solution.

 

Thanks for reading.

Link to comment
https://forums.phpfreaks.com/topic/49724-php-4-xml-parser-buffer-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.