Re: [PHP] modify an XML file

2004-02-01 Thread Raditha Dissanayake
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 t

Re: [PHP] modify an XML file

2004-02-01 Thread Marek Kilimajer
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 modifica

Re: [PHP] modify an XML file

2004-02-01 Thread Decapode Azur
> >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? -- Th

Re: [PHP] modify an XML file

2004-02-01 Thread Raditha Dissanayake
Decapode Azur wrote: hello! Hi there. What is the best solution to modify an XML file? depends (Modification such as change the content of a tag or of an attribute) I think there would be several methods. you said it. What is the best one for small files? (something about 20Ko) DOM (if y

[PHP] modify an XML file

2004-02-01 Thread Decapode Azur
hello! What is the best solution to modify an XML file? (Modification such as change the content of a tag or of an attribute) I think there would be several methods. What is the best one for small files? (something about 20Ko) What is the best one for large files? (something about 8Mo) What shoul