How to render XML ..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to render XML ..

G.Venkata Phanindra
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.........
--

G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: How to render XML ..

Jacopo Cappellato
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.........

Reply | Threaded
Open this post in threaded view
|

Re: How to render XML ..

G.Venkata Phanindra
Hi Jacopo Cappellato,
Thnks it solved my problem and also gave me new concept for implementatioin
of different Formats,..
Thanks and regards
Phani

On 8/7/06, Jacopo Cappellato <[hidden email]> wrote:

>
> 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.........
>
>


--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: How to render XML ..

rajshekhar
In reply to this post by G.Venkata Phanindra
Hi Pani how r u i read u r qustion if u come to dilsuknagar u will get the solution
yours venu