public static Element createElementInSignatureSpace(Document doc,String elementName){
  if (doc == null) {
    throw new RuntimeException("Document is null");
  }
  if ((dsPrefix == null) || (dsPrefix.length() == 0)) {
    return doc.createElementNS(Constants.SignatureSpecNS,elementName);
  }
  return doc.createElementNS(Constants.SignatureSpecNS,dsPrefix + ":" + elementName);
}

public static Element createElementInSignatureSpace ( Document doc , String elementName ) { if ( doc == null ) { throw new RuntimeException ( "Document is null" ) ; } if ( ( dsPrefix == null ) || ( dsPrefix . length ( ) == 0 ) ) { return doc . createElementNS ( Constants . SignatureSpecNS , elementName ) ; } return doc . createElementNS ( Constants . SignatureSpecNS , dsPrefix + ":" + elementName ) ; }
creates an element in the xml signature specification namespace .
