{"action":"created","issue":{"url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/1","labels_url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/1/comments","events_url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/1/events","html_url":"https://github.com/michalcarson/SymfonyXmlResponse/issues/1","id":121114889,"number":1,"title":"Can't generate a node with child nodes of same name","user":{"login":"twang4turner","id":15741251,"avatar_url":"https://avatars.githubusercontent.com/u/15741251?v=3","gravatar_id":"","url":"https://api.github.com/users/twang4turner","html_url":"https://github.com/twang4turner","followers_url":"https://api.github.com/users/twang4turner/followers","following_url":"https://api.github.com/users/twang4turner/following{/other_user}","gists_url":"https://api.github.com/users/twang4turner/gists{/gist_id}","starred_url":"https://api.github.com/users/twang4turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twang4turner/subscriptions","organizations_url":"https://api.github.com/users/twang4turner/orgs","repos_url":"https://api.github.com/users/twang4turner/repos","events_url":"https://api.github.com/users/twang4turner/events{/privacy}","received_events_url":"https://api.github.com/users/twang4turner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T22:31:05Z","updated_at":"2015-12-09T21:46:01Z","closed_at":null,"body":"Hi,\r\n\r\nThe library is great and very easy to use. I have a question: we need to generate a xml with a files node that contains a list of 'file' child nodes like the following:\r\n\r\n\\<files\\>\r\n\\<file\\>file1.txt\\</file\\>\r\n\\<file\\>fle2.txt\\</file\\>\r\n\\<file\\>file3.txt\\</file\\>\r\n\\</files\\>\r\n\r\nSince we can't duplicate keys in an array, how can I create the \"files\" node?\r\n\r\nYour help would be greatly appreciated!\r\n"},"comment":{"url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/comments/163404045","html_url":"https://github.com/michalcarson/SymfonyXmlResponse/issues/1#issuecomment-163404045","issue_url":"https://api.github.com/repos/michalcarson/SymfonyXmlResponse/issues/1","id":163404045,"user":{"login":"deviantintegral","id":255023,"avatar_url":"https://avatars.githubusercontent.com/u/255023?v=3","gravatar_id":"","url":"https://api.github.com/users/deviantintegral","html_url":"https://github.com/deviantintegral","followers_url":"https://api.github.com/users/deviantintegral/followers","following_url":"https://api.github.com/users/deviantintegral/following{/other_user}","gists_url":"https://api.github.com/users/deviantintegral/gists{/gist_id}","starred_url":"https://api.github.com/users/deviantintegral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deviantintegral/subscriptions","organizations_url":"https://api.github.com/users/deviantintegral/orgs","repos_url":"https://api.github.com/users/deviantintegral/repos","events_url":"https://api.github.com/users/deviantintegral/events{/privacy}","received_events_url":"https://api.github.com/users/deviantintegral/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T21:46:01Z","updated_at":"2015-12-09T21:46:01Z","body":"JsonResponse doesn't handle this because you can't have multiple \"nodes\" with the same name.\r\n\r\nIs there anything in <a href=\"http://symfony.com/doc/2.8/components/serializer.html\">symfony/serializer</a> that would help? It looks like we could change this to accept an object and a normalizer for the object in the constructor, and then rely on that to actually generate the XML."}}