Re: Re: XML_Serializer - flexible node attributes?

From: Date: Fri, 16 Dec 2005 23:45:49 +0000
Subject: Re: Re: XML_Serializer - flexible node attributes?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22283@lists.php.net to get a copy of this message
Andrew - I've stuck with XML_Serializer as well. Thanks for the tip. On Dec 16, 2005, at 1:50 PM, Andrew Nagy wrote:
Stephen Musgrave wrote:
The above example has a mix of node attributes (email) and nodes (author's name). I haven't been able to figure out how to make that happen in XML_Serialize. Is it possible now?
Yes, this is possible as I am building a very complex XML document with XML_Serializer. You can use the "attributesArray" option to define the key that will hold your array of attributes.
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. Andrew -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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