Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Can episerver serve a "page" as .xml instead of .aspx?


A flash object we use will only accept xml from a file with a .xml extension.

Is it possible to force a page to respond to a .xml extension instead of .aspx and is there any built in functionality that makes it easier to edit an xml structure?

Oct 06, 2010 18:35

Yep.  Allan wrote an "output format" plugin which can deliver pages as XML, JSON, JPG (seriously), etc.

You pass in your desired format in the querystring argument.

Edited, Oct 06, 2010 22:47

On re-reading, I see you need to have a ".xml" extension -- sorry, I missed that.  You'd need to rewrite the URL for this.  You could do this at the IIS7 level, or by hooking the UrlRewriter in EPiServer.

Oct 06, 2010 22:52

Another approach would be to create a simple VirtualPathProvider to do this.


Oct 07, 2010 8:38
Oct 07, 2010 8:39
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.