code:     public static void addNamespacePrefix(Element element, String namespaceUri, String prefix) {
          element.setAttributeNS(XMLConstants.XMLNS_ATTRIBUTE_NS_URI, "xmlns:" + prefix, namespaceUri);
      }
  