title: In Java, how do I parse XML as a String instead of a file?
body: <p>I have the following code: </p>
  
  <pre><code>DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(xmlFile);
  </code></pre>
  
  <p>How can I get it to parse XML contained within a String instead of a file?</p>