title: Importing XML data into a XFA PDF form [using Python]
body: <p><strong>What I currently have:</strong> A XFA PDF form, and a .dat file (all txt format inside)</p>
  
  <p><strong>What I need to do:</strong> Import the .dat data into the XFA PDF form</p>
  
  <p><strong>Current thought process:</strong> </p>
  
  <ul>
  <li>Convert .dat data into XML format</li>
  <li>Extract fields from XFA PDF file</li>
  <li>Import converted XML data into the XFA PDF file using the extracted
  fields</li>
  </ul>
  
  <p><strong>Problems</strong>: </p>
  
  <ul>
  <li><p>Field extraction; pdftk cannot be used, since the PDF form is XFA not AcroForm; Is there any way to do this without subscribing to Acrobat/Livecycle? Also, pdfminer is not giving good results here, it seems to not work with the XFA format.</p></li>
  <li><p>XML import into PDF; No good idea on how to actually do this, do any python modules exist?</p></li>
  </ul>