12 messages in com.googlegroups.pylons-discussRe: XML
FromSent OnAttachments
Alagu Madhu15 Apr 2008 06:28 
Garland, Ken R15 Apr 2008 06:31 
Alagu Madhu15 Apr 2008 06:45 
Garland, Ken R15 Apr 2008 07:05 
Ben Bangert15 Apr 2008 09:12 
Garland, Ken R15 Apr 2008 09:21 
Ben Bangert15 Apr 2008 09:53 
Mike Orr15 Apr 2008 11:15 
Alagu Madhu15 Apr 2008 22:51 
Shelezyaka21 Apr 2008 01:57 
Mike Orr21 Apr 2008 09:31 
Alagu Madhu21 Apr 2008 22:32 
Subject:Re: XML
From:Garland, Ken R (garl@gmail.com)
Date:04/15/2008 06:31:17 AM
List:com.googlegroups.pylons-discuss

Are you wanting to display the XML raw like this:

${c.xml | x}

On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu <alma@gmail.com> wrote:

Hi,

I am using pylons 0.9.7beta4) and mako.

def xml(self): c.xml = ... response.headers['Content-Type'] = 'application/xml' return render('/xml.mak')

xml.mak:

<?xml version="1.0" encoding="utf-8" ?> <customer id="customer"> ${c.xml} </customer>

The XML file appear ...

<customer id="customer"> <kk id="1012" name="Pylons 12"/><kk id="1013" name="Pylons 13"/><kk id="1014" name="Pylons 14"/><kk id="1015" name="Pylons 15"/><kk id="1016" name="Pylons 16"/><kk id="1017" name="Pylons 17"/><kk id="1018" name="Pylons 18"/><kk id="1019" name="Pylons 19"/><kk id="1020" name="Pylons 20"/><kk id="1021" name="Pylons 21"/> </customer>

But,The Page Source...

<?xml version="1.0" encoding="utf-8" ?> <customer id="customer"> &lt;kk id=&quot;1012&quot; name=&quot;Pylons 12&quot;/&gt;&lt;kk id=&quot;1013&quot; name=&quot;Pylons 13&quot;/&gt;&lt;kk id=&quot; 1014&quot; name=&quot;Pylons 14&quot;/&gt;&lt;kk id=&quot;1015&quot; name=&quot;Pylons 15&quot;/&gt;&lt;kk id=&quot;1016&quot; name=&quot;Pylons 16&quot;/&gt;&lt;kk id=&quot;1017&quot; name=&quot;Pylons 17&quot;/&gt;&lt;kk id=&quot;1018&quot; name=&quot;Pylons 18&quot;/&gt;&lt;kk id=&quot;1019&quot; name=&quot;Pylons 19&quot;/&gt;&lt;kk id=&quot;1020&quot; name=&quot;Pylons 20&quot;/&gt;&lt;kk id=&quot;1021&quot; name=&quot;Pylons 21&quot;/&gt; </customer>

Thanks

Madhu Alagu