Re: XML_Serializer - Style of empty tag

From: Date: Wed, 01 Dec 2004 16:35:41 +0000
Subject: Re: XML_Serializer - Style of empty tag
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15950@lists.php.net to get a copy of this message
Georg Bez wrote:
Hi Ignatius,
Surely it is fairly easy to transform an empty tag into your desired form with a REGEX processing after your XML serialization. (for the time being I leave the exercise to the reader...)
Yes, You are right completely and it puts me also before no bigger problems :-) to build an appropriate regex. My wish would be to be had this option directly in XML_Serializer. I hope this is not to be measured. If Stephan informs me that he does not find this meaningfully, no time or desire has ;-) has then do I the other variant. However, till there I still have hope. Perhaps this function is little bit faster in the integrated version than the additional regex. However, this is only an assumption.
The code for creating tags is in XML_Util, not in XML_Serializer. To fix this would require rewriting one part of XML_Util, because it is static and cannot be extended (hence our first example of why using static classes limits extensibility) Perhaps adding an option to XML_Util::createTag to ignore empty tags and generate them like everything else would solve this? Greg

« previous php.pear.general (#15950) next »