What means exactly "Memory error"?
Bo M. Maryniuck
b.maryniuk at forbis.lt
Thu Apr 24 13:17:47 EDT 2003
On Thursday 24 April 2003 17:54, Oren Tirosh wrote:
> Try to use a streaming XML API like SAX instead of DOM. For the splitting
> operation you describe there shouldn't be any need to store the entire file
> in memory. You may not even need and XML parser at all - looking for the
> HR markers could probably be done by a few regular expressions without full
> parsing of the XML stream.
Well, I only split it by <HR> and it surely causes no problem. But for the
rest (a lot of changings in the document to adapt it for Zope) I probably
need DOM -- regular expressions outside this job.
--
Regards, Bogdan
Linux -- the OS for the Renaissance Man
More information about the Python-list
mailing list