How to control XML element names in Play framework

Progs4Arab

New Member
I've got a java bean class, which i render using \[code\]renderXml\[/code\] method. How to control the name of the class or fields in XMl. Something like this\[code\]@XStreamAlias(value="http://stackoverflow.com/questions/10336512/MyInfo")public class Info {}\[/code\]I want to render MyInfo instead of Info as parent element. As I can see, Play use XStream for rendering xml, but I can't figure out, how to change element name. I know, that it's possible to render with predefined template in view folder, I would like to avoid it
 
Back
Top