I'm sorry but I don't get what you mean.

Do you have random XML content and do you want to convert it into pdf?
How that should look in the end?