12 messages in com.googlegroups.pylons-discussRe: XML| From | Sent On | Attachments |
|---|---|---|
| Alagu Madhu | 15 Apr 2008 06:28 | |
| Garland, Ken R | 15 Apr 2008 06:31 | |
| Alagu Madhu | 15 Apr 2008 06:45 | |
| Garland, Ken R | 15 Apr 2008 07:05 | |
| Ben Bangert | 15 Apr 2008 09:12 | |
| Garland, Ken R | 15 Apr 2008 09:21 | |
| Ben Bangert | 15 Apr 2008 09:53 | |
| Mike Orr | 15 Apr 2008 11:15 | |
| Alagu Madhu | 15 Apr 2008 22:51 | |
| Shelezyaka | 21 Apr 2008 01:57 | |
| Mike Orr | 21 Apr 2008 09:31 | |
| Alagu Madhu | 21 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"> <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>
Thanks
Madhu Alagu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to pylo...@googlegroups.com
To unsubscribe from this group, send email to
pylo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---




