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>




I want to display the page source like

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



On Apr 15, 4:31 pm, "Garland, Ken R" <[EMAIL PROTECTED]> wrote:
> Are you wanting to display the XML raw like this:
>
> ${c.xml | x}
>
> On Tue, Apr 15, 2008 at 9:29 AM, Alagu Madhu <[EMAIL PROTECTED]> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to