code: public String toXml(Object obj, Class<?>... clas) {
  		ByteArrayOutputStream out = new ByteArrayOutputStream();
  		toXml(obj, out, clas);
  		return out.toString();
  	}
docs: To xml.
  
  @param obj  the obj
  @param clas the clas
  @return the string