Does anyone know if it's possible to return an xml template with
myghty?
I have this template
<?xml version="1.0" encoding="ISO-8859-1"?>
<message>
<envelope>
<type><%c.type%></type>
<msg><%c.mesg%></msg>
</envelope>
</message>
I'm calling this in my controller
return Response(render('/messages/mesg.myt', format='xml'),
mimetype='text/xml')
Is this possible?
I found that if the xml is on one line with no returns or tabs it
works and I can parse the data properly with javascript
however, if i format the template with tabs and returns the xml
returned seems to contains null nodes in between elements and the same
javascript cannot parse it.
Am I missing something?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---