title: MS Word splits words in its XML format
body: <p>I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content.
  But, the problem is that Word seemingly randomly splits them in the separate words. For example, instead of this:</p>
  
  <pre><code>&lt;w:t&gt;${dl.d.out.ecs_rev}&lt;/w:t&gt;
  </code></pre>
  
  <p>I have this:</p>
  
  <pre><code>...
  &lt;w:t&gt;${&lt;/w:t&gt;
   &lt;/w:r&gt;
   &lt;w:r wsp:rsidR="005D11C0"&gt;
    &lt;w:rPr&gt;
     &lt;w:sz w:val="20" /&gt;
     &lt;w:sz-cs w:val="20" /&gt;
    &lt;/w:rPr&gt;
    &lt;w:t&gt;dl.&lt;/w:t&gt;
   &lt;/w:r&gt;
  &lt;w:r wsp:rsidRPr="00696324"&gt;
   &lt;w:rPr&gt;
    &lt;w:sz w:val="20" /&gt;
    &lt;w:sz-cs w:val="20" /&gt;
   &lt;/w:rPr&gt;
  &lt;w:t&gt;d.out.ecs_rev}&lt;/w:t&gt;
  ...
  </code></pre>
  
  <p>Is there any way to save a "clean" XML document using Word 2003, or is there any existing solution which can do the cleaning?</p>
  
  <p>I tried to program a method in Java which will concatenate separated parts of the placeholders, but because the number of different cutting combinations is relatively big, the algorithm for that is far more complex than a original task that I have to do, so it is problem for itself.</p>