Re: XML_Serializer - flexible node attributes?

From: Date: Fri, 16 Dec 2005 20:26:01 +0000
Subject: Re: XML_Serializer - flexible node attributes?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22282@lists.php.net to get a copy of this message
Andrew Nagy wrote:
Stephen Musgrave wrote:
Someone had responded to the thread, explaining that they should use XML_FastCreate instead.
Yes, I am in the process of switching my XML_Serializer object over to an XML_FastCreate because I don't think there is anyway to have multiple elements at one level with the same name due to the nature of associative arrays. It looks like XML_FastCreate can accomplish what you need to do.
Scratch that idea, I am sticking with XML_Serializer. XML_FastCreate will not allow the use of ':' in an element name (commonly used with namespaces) due to the nature of object variables. Also, I figured out how to allow multiple elements at one level with the same name. You can set everything in a subarray and use the "simplexml" option. Andrew

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