For me, using pylons 0.9.6.1 and Mako-0.1.10

${c.xml} - gives blank page, with source like this:

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

${c.xml | x} gives a page with the xml, but source like this:

&lt;customer id=&#34;customer&#34;&gt;&lt;kk id=&#34;1012&#34;
name=&#34;Pylons 12&#34;/&gt;&lt;kk id=&#34;1013&#34; name=&#34;Pylons
13&#34;/&gt;&lt;kkid=&#34;1014&#34; name=&#34;Pylons
14&#34;/&gt;&lt;kk id=&#34;1015&#34; name=&#34;Pylons
15&#34;/&gt;&lt;kkid=&#34;1016&#34; name=&#34;Pylons
16&#34;/&gt;&lt;kk id=&#34;1017&#34; name=&#34;Pylons
17&#34;/&gt;&lt;kkid=&#34;1018&#34; name=&#34;Pylons
18&#34;/&gt;&lt;kk id=&#34;1019&#34; name=&#34;Pylons
19&#34;/&gt;&lt;kkid=&#34;1020&#34; name=&#34;Pylons
20&#34;/&gt;&lt;kk id=&#34;1021&#34; name=&#34;Pylons
21&#34;/&gt;&lt;/customer&gt;

We'll have to wait for the experts on this one, or search the source.



On Tue, Apr 15, 2008 at 9:46 AM, Alagu Madhu <[EMAIL PROTECTED]> wrote:
>
>
>  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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to