Re: Handling XML output in a slim way

From: Date: Thu, 02 Sep 2004 14:36:08 +0000
Subject: Re: Handling XML output in a slim way
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-195600@lists.php.net to get a copy of this message
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 with very simple XML documents, but they're getting more and more complexer and I'm spending more and more time getting complex XML output right with the string-concact method.
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. http://www.phpclasses.org/xmlwriter -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html

« previous php.general (#195600) next »