schmittjoh/JMSSerializerBundle — pull request #129 by Spea (2012-06-13 09:53:30+00:00)
Title: Added support for using the keys of an array as XML tag.

As discussed in #59 this PR adds the possibility to use the keys of an array as XML tags.

Example:

Currently I only check for numeric keys to avoid problems with naming convention. But when a key looks like "**1_foo**" an exception is thrown. Possible solutions could be:
* Catch the DOMException and set the tag name back to "**entry**"
* Use PCRE to check if the key is a valid tag name

What do you think?