Hello, I'm trying to encode a array with the XmlEncoder but i do not find any solution to have this xml :
<element attribute="attr_value">elem_value</element> After looking at the code it seems this can't be done (the only way is with item but we can't specifiy the element name) A workaround would be, like attributes, to set a specific token for the value, for example : array('@attribute' => 'attr_value', '#' => elem_value) => <element attribute="attr_value">elem_value</element> But before making a PR i want to talk about this, if there is a best approach for this behavior. Cordially, -- Joel WURTZ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en