title: Docx4J get header/footer elements from docx file and modify them
body: <p>I am using Docx4J to modify docx templates and put values in place of placeholders in the template that are predefined. </p>
  
  <p>so far, i had been successful in finding and replacing paragraphs and texts, tables, images etc. But i am not yet successful in finding Header and/or Footer elements of the document. </p>
  
  <p>I am using </p>
  
  <pre><code>WordprocessingMLPackage wordMLPackage =
  WordprocessingMLPackage.load(new java.io.File(inputfilepath));
  wordMLPackage.getMainDocumentPart(); 
  </code></pre>
  
  <p>to search for elements in the template. </p>