title: This expression has type 'void' and can't be used
body: <p>I am trying to parse XML to JSON and for that I have used Xml2JSON package. When I am using this it is resulting me an error:</p>
  
  <pre><code>Error: This expression has type 'void' and can't be used.
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>Xml2Json xml2json = new Xml2Json();
  String json = xml2json.parse(data);
  </code></pre>