http://api.cakephp.org/class/xml-helper#method-XmlHelperserialize
You can do the following:
$xml->serialize($yourData, array('format' => 'elements'));
On Mar 9, 7:45 pm, tobi_one <[email protected]> wrote:
> Hi,
>
> I'm using the xmlHelper and serialize to output an array as XML. This
> works ok, except that the outputed XML uses "attributes"
> (http://www.w3schools.com/XML/xml_attributes.asp) instead of standard
> elements.
>
> Is there a way to change this behaviour? I see there is an option
> attribute with serialize, but unfortunately no documentation on what
> could be specified there...
>
> Cheers,
> Tobi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---