Re: [PHP] Handling XML output in a slim way

2004-09-02 Thread Markus Fischer
Manuel Lemos wrote: You may want to try this XML writer class. It lets you just add tags and data and then it outputs the data properly encoded and nicely indented according to your specifications. It does not requere any special extension. Probably exactly what I want, thanks. - Markus -- PHP G

Re: [PHP] Handling XML output in a slim way

2004-09-02 Thread Manuel Lemos
Hello, On 09/02/2004 06:25 AM, Markus Fischer wrote: If it's not broken don't fix it. If what you are doing right now works stick with it because it consumes very little memory or CPU compared to DOM functions. You are right, it works. But I'm not satisified and up until now I've been dealing w

Re: [PHP] Handling XML output in a slim way

2004-09-02 Thread Markus Fischer
Raditha Dissanayake wrote: If it's not broken don't fix it. If what you are doing right now works stick with it because it consumes very little memory or CPU compared to DOM functions. You are right, it works. But I'm not satisified and up until now I've been dealing with very simple XML documen

Re: [PHP] Handling XML output in a slim way

2004-09-01 Thread raditha dissanayake
Markus Fischer wrote: Hi, up until now, when outputing XML I've been constructing the output as a continous string-soup in such ways like [...] $xml .= printf('%s', makeXmlSave($name), makexmlSave($contentOfItem)); [...] makeXmlSave() makes sure that quotes, ampersand, < and > are properly esc

[PHP] Handling XML output in a slim way

2004-09-01 Thread Markus Fischer
Hi, up until now, when outputing XML I've been constructing the output as a continous string-soup in such ways like [...] $xml .= printf('%s', makeXmlSave($name), makexmlSave($contentOfItem)); [...] makeXmlSave() makes sure that quotes, ampersand, < and > are properly escaped with their entity r