ng from a StringBuffer using a 
 <code>javax.xml.transform.stream.StreamSource</code>:
 <blockquote>
    <pre><code>
       JAXBContext jc = JAXBContext.newInstance( "com.acme.foo" );
       Unmarshaller u = jc.createUnmarshaller();
       StringBuffer xmlStr = new StringBuffer( "&lt;?xml version="1.0"?&gt;..." );
       Object o = u.unmarshal( new StreamSource( new StringReader( xmlStr.toString() ) ) );
    </code></pre>
 </blockquote>

 <p>
 Unmarshalling from a <code>org.w3c.dom.Node</code>:
 <blockquote