November Happy Hour will be moved to Thursday December 5th.

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

Vote:
 

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?

#44237
Oct 06, 2010 18:35
Vote:
 

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

http://labs.episerver.com/en/Blogs/Allan/Dates/2010/6/Codemania-Partner-Summit-2010/

You pass in your desired format in the querystring argument.

#44238
Edited, Oct 06, 2010 22:47
Vote:
 

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.

#44239
Oct 06, 2010 22:52
Vote:
 

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

/johan

#44240
Oct 07, 2010 8:38
Vote:
 
#44241
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.