title: how to convert array byte to org.w3c.dom.Document
body: <p>I have a Document (org.w3c.dom.Document), I convert this document to array of byte:</p>
  
  <pre><code>private byte[] obtenerBytesDeDocument(Document documentoXml) throws Exception {
      Source source = new DOMSource( documentoXml );
      ByteArrayOutputStream out = new ByteArrayOutputStream();
      Result result = new StreamResult(out);
      TransformerFactory factory = TransformerFactory.newInstance();
      Transformer transformer = factory.newTransformer();
      transformer.transform(source, result);
      byte[] butesXml =  out.toByteArray();
      return butesXml;
  }
  </code></pre>
  
  <p>I need convert the array of byte to document newly: </p>
  
  <pre><code>private Document obtenerDocumentDeByte(byte[] documentoXml) throws Exception {
          ...
  }
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Thansks!!!</p>