Hi,
in the controller's view definition for that screen, specify the correct
content-type; see for example how it is set the content type for PDF
documents:
<view-map name="InvoicePDF" type="screenfop"
page="component://accounting/widget/AccountingPrintForms.xml#InvoicePDF"
content-type="application/pdf" encoding="none"/>
I think that the right content type for xml files is "text/xml"
Jacopo
G.Venkata Phanindra wrote:
Hi,
I want to display XML data for a requested URL.
I have defined a reference in contentscreens.xml file as follows
<screen name="sitemap-gsmp">
<section>
<widgets>
<platform-specific><html><html-template
location="component://giftsnideas/webapp/giftsnideas/content/sitemap-
gsmp.ftl"/></html></platform-specific>
</widgets>
</section>
</screen>
Even though my Out of ftl file is as i expected since i am using the
<platform-specific><html><html-template
location="component://giftsnideas/webapp/giftsnideas/content/sitemap-
gsmp.ftl"/></html></platform-specific>
The output is comming as HTML format ........How can i get XML
format.........