Is it possible to turn on template debugging for XML templates? Whenever I try I get an error because HTML tags get added to the rendered page.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 13, 2011 5:16pm
Subscribe [4]#1 / May 13, 2011 5:16pm
Is it possible to turn on template debugging for XML templates? Whenever I try I get an error because HTML tags get added to the rendered page.
#2 / May 15, 2011 2:34pm
Hi scruffpuff,
Not really, the issue is the one you’ve come across. Different browsers may react differently and may display more detail than others so it’s worth trying a couple. There is a way to do it manually though:
1. Switch on debugging
2. Refresh your XML template
3. View source - all the debugging output will be there, just hidden
4. Copy all the debugging output HTML
5. Create a new Web Page template and paste the debugging output into it
6. Switch off debugging
7. View your new debug template
Does that help?
Cheers
Greg
#3 / Aug 29, 2011 11:05am
In a similar vein, is there a way to prevent template debugging from displaying in an XML or RSS template? I have an RSS template being used for a flash video player, and the player is choking on the debugging part of the template.
I even tried silly things like adding an open-ended comment tag ( {!—or <!—)to the end of the template, which didn’t work… any way to prevent template debugging on a specific template?
#4 / Aug 29, 2011 8:38pm
Michael,
I’m afraid template debugging is all or none for now, but it sounds like a fantastic Feature Request!
Cheers,
#5 / Aug 31, 2011 9:56am
Done, thanks.
#6 / Aug 31, 2011 7:17pm
Michael,
Thanks for taking the time to offer your ideas, I know this is a feature I was needing today.
I’m going to close this one out. Let us know if we can be of further assistance in the future.
Cheers,
#7 / Aug 31, 2011 7:17pm
Resolved