Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing addData in XmlSerializerVisitor makes it impossible to add data in serializer.post_serialize event #235

Closed
benglass opened this issue Feb 16, 2014 · 2 comments

Comments

@benglass
Copy link

I might be missing something but since XmlSerializerVisitor doesnt extend GenericSerializerVisitor you cannot add data in the post_serialize event. When its JSON which extends GenericSerializer I can add data but not when its xml.

@Sander-Toonen
Copy link

+1 Is this on purpose?

@goetas
Copy link
Collaborator

goetas commented Dec 30, 2016

can be done in the via

$visitor->getCurrentNode()->appendChild($yourNode);

@goetas goetas closed this as completed Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants