title: Write text and tables in to word, with whitespaces/enters
body: <p>I'm writing <code>text</code> and <code>text</code> from <code>tables</code> into a word document.</p>
  
  <p>With the following code the <code>tables</code> are placed under the right <code>paragraphs</code>.</p>
  
  <pre><code> Iterator&lt;IBodyElement&gt; iter = xdoc.getBodyElementsIterator();
                 while (iter.hasNext())
                 {
                    IBodyElement elem = iter.next();
                    if (elem instanceof XWPFParagraph)
                    { 
                        relevantText.setText(((XWPFParagraph) elem).getText());
  
                    } else if (elem instanceof XWPFTable)
                    {     
                        tabellen.setText(((XWPFTable) elem).getText());
  
                    }
                 }
  </code></pre>
  
  <p>Now when I try to make a <code>whitespace/enter</code> with <code>addBreak()</code> or <code>addCarriageReturn()</code> the order of my document is wrong. The <code>table text</code> is placed after all the <code>text</code>.</p>
  
  <p>Has anyone a solution for this?</p>