title: Fixing malformed XML with java
body: <p>I have several files containing the following XML element:</p>
  
  <pre><code>     &lt;table cellpadding="0" cellspacing="0" border="0"style="width:100%"&gt;
  </code></pre>
  
  <p>The part that says <code>border="0"style="</code> needs a space between the 0 value and style attribute.</p>
  
  <p>Unfortunately there are too many files with this issue to make manually going and inserting the space a viable option. 
  I can edit attributes and I can edit values by creating an Xpath that gets the table as a NodeList, creates a node and gets the attributes.. but how would I add a space between the attribute and the value??</p>