I have a use case where I would like to embed XML within my page using <ui:include>. Later a JS function grabs this xml and sets it on a flash component on the page. This works fine until an ajax reRender occurs. For each ajax reRender (the ui:include is contained in an a4j:outputPanel) my XML gets truncated. I believe this is due to the tidy parser triggered by the richfaces filter.
We do not want to turn off the tidy parser. But the XML needs to update on ajax request without getting truncated. Is there a good way to accomplish this?
Long story short. Don't attempt this solution. Embedding the XML in the page can be problematic.