Re: XML methods(SAX/expat)

From: Date: Thu, 08 Feb 2001 08:37:35 +0000
Subject: Re: XML methods(SAX/expat)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38704@lists.php.net to get a copy of this message
> while ($data = fread($fp,1)) // yes, I know you shouldn't use '1', but it's > an example > { > xml_parse($parser, $data,feof($fp)); > } > > ie, should I set a flag if the CDATA's base64 encoded to persist over > multiple CDATA events, or does it wait for the closing tag and send all > of the data off to the handler as one batch? Some CDATA elements > may be multiple megabyte images. (Yes, it's from an outside source > that we have no control of.) If nobody knows, you could run a simple test pretty quickly with that... You might need to add some code to be sure you always have a full chunk of XML in RAM... Wouldn't exactly be tricky, would it?.... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38704) next »