Code example for Attr

Methods: setValue

0
  // set attributes 
  Attr attr;
   
  // property type 
  attr = dom.createAttribute("EsriPropertyType");
  attr.setValue("Base64");
  ndData.getAttributes().setNamedItem(attr);
   
 
  // MD5 hash of the original xml for the document, 
  // this is not yet implemented 
  /* 
  String sMd5Hash = ""; 
  try { 
    MessageDigest md; 
    md = MessageDigest.getInstance("MD5"); 
    md.update(originalXml.getBytes("UTF-8")); 
    //String sTmp = new String(md.digest(),"UTF-8"); 
    //System.err.println(sTmp); 
  } catch (NoSuchAlgorithmException e) { 
Connect your IDE to all the code out there  Get Codota for Java