title: PHP to PDF - Use text from XML document to create PDF?
body: <p>I have some xml files that contain text, which are displayed on my website. I want to extract the text from these xml files and convert them to a pdf document that users can download.</p>
  
  <ol>
  <li><p>how can I can extract this text from the xml documents? (libraries etc?)</p></li>
  <li><p>how can I use this text to create a pdf document?</p></li>
  </ol>
  
  <p>I am working in a PHP environment, however if this is not the suitable language, I could change. </p>