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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---