[web2py] Re: Display XML as HTML web2py

2010-12-05 Thread mdipierro
Yes. The content is there: ... but the content of the div is XML, not valid HTML therefore it is not rendered by the browser. You may need to use iframe or some js library to render xml. On Dec 5, 10:34 am, Andrew Evans wrote: > it does contain something that's the thing it displays the

Re: [web2py] Re: Display XML as HTML web2py

2010-12-05 Thread Andrew Evans
it does contain something that's the thing it displays the XML in my HTML when I check the page source code just not displaying on the page *shrugs http://www.zenmg.com/default/guildRoster thats the page Any ideas *cheers :D

[web2py] Re: Display XML as HTML web2py

2010-12-05 Thread mdipierro
There is nothing wrong with your code. Controller - def guildRoster(): url = 'http://www.wowarmory.com/guild-info.xml?r=Moon +Guard&gn=Zen' header = { 'User-Agent' : 'Mozilla/5.0 Gecko/20070219 Firefox/ 2.0.0.2'} req = urllib2.Request(url, '', header) return dict(r