title: How to convert String having contents in XML format into JDom document
body: <p>How convert String having contents in XML format into JDom document. </p>
  
  <p>i am trying with below code:</p>
  
  <pre><code>String docString = txtEditor.getDocumentProvider().getDocument(
  txtEditor.getEditorInput()).get();
  
  SAXBuilder sb= new SAXBuilder();
  
  doc = sb.build(new StringReader(docString));
  </code></pre>
  
  <p>Can any one help me to resolve above problem.
  Thanks in advance!!</p>