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 better
approach for this behavior.
Cordially,
PS : I have already post this in symfony users groups, but i think it's more
a dev approach, so sorry for double message.
--
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 developers" 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/symfony-devs?hl=en