Marc M. Adkins wrote:
The other side of this is that the response handler generates XML and the output filter handler consumes it. I was thinking that I should be able to hang the XML object (not the text representation thereof) on the request object and avoid the overhead of printing the XML and then parsing it again. Has anyone tried doing this?

I've no experience of parsing XML on every request (not that I'd want to, what an overhead!) but could you just output nothing in the response phase, and put the XML object reference using $r->pnotes('my_xml_object', $my_xml_object) then in your output filter do $my_xml_object=$r->pnotes('my_xml_object') ?

cheers
John

Reply via email to