For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2005 > Re: [PEAR] Re: XML_Serializer - flexible node attributes?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Re: XML_Serializer - flexible node attributes?
Guillaume Lecanu

2005-12-19, 3:57 am

Le vendredi 16 décembre 2005 à 15:26 -0500, Andrew Nagy a écrit :

> Andrew Nagy wrote:
>
> 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.


I'm the author of XML_FastCreate, this package could make tags with ':'
but you need to used the xml() method instead to uses the overloading
system :
$x->xml('like:this', params...)

But I think XML_FastCreate is not the good way for you, I think it's a
good tool for end-developper, but I think it's not a good way for other
packages because this will take too memory / time rather a native
methods of PHP (uses DOM XML of PHP5)


>
> 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
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com