code: public static Document toDocument(String s, Charset c) throws MarshalException {
  
  		byte[] bytes = c == null ? s.getBytes() : s.getBytes(c);
  		ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
  
  		return toDocument(bais);
  	}
docs: Marshal a {@link Document} from {@link String} with XML data
  
  @param s string containing XML data
  @param c charset used for encoding the string
  @return {@link Document} containg the XML data
  @throws MarshalException