title: How to convert a xml file to json string and back keeping attributes
body: <p>I'm trying to convert a xml file to json and backwards, but when doing so the integrity changes, from:</p>
  
  <p><code>&lt;option value="0"&gt;
    &lt;!--something--&gt;
  &lt;/option&gt;</code></p>
  
  <p>to</p>
  
  <p><code>&lt;option&gt;
    &lt;!--something--&gt;
    &lt;value&gt;0&lt;/value&gt;
  &lt;/option&gt;</code></p>
  
  <p>I get this when using org.json, is there another json library that can do this job while keeping file integrity?</p>