Re: modify an XML file

From: Date: Sun, 01 Feb 2004 18:15:20 +0000
Subject: Re: modify an XML file
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-176521@lists.php.net to get a copy of this message
Decapode Azur wrote:
What is the best one for large files? (something about 8Mo)
Parse with SAX, use printf to produce output.
Ok, it seems this method is defenitly a good one. I was wondering if it was a good one too, to read the XML file with fgets, and using ereg fonctions to make the modifications?
You can do it as an exercise :-) There are xml parsing classes that do not depend on any xml extension, but they are certainly slower.

« previous php.general (#176521) next »