The solution is to have a modelClass that defines a "text/xml" ContentType as
part of the response.
[code]public class XmlContentTypeModel extends STKPageModel<STKPage> {
private static final Logger log =
LoggerFactory.getLogger(XmlContentTypeModel.class);
public XmlContentTypeModel(Node content, STKPage definition,
RenderingModel<?> parent, STKTemplatingFunctions stkFunctions,
TemplatingFunctions templatingFunctions) {
super(content, definition, parent, stkFunctions,
templatingFunctions);
}
@Override
public String execute() {
// set the content type to text/xml
MgnlContext.getWebContext().getResponse().setContentType("text/xml");
return null;
}
}[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=b2a9685a-d281-4453-844b-39c759c1436d
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------