Examples of createAttribute()


Examples of org.w3c.dom.Document.createAttribute()

    Element newElement = factory.createElement("xforms:submit");
   
    Attr newAttrib1 = factory.createAttribute("id");
    newAttrib1.setValue("submit_"+number);
   
    Attr newAttrib2 = factory.createAttribute("submission");
    newAttrib2.setValue("submission_"+number);
   
    newElement.setAttributeNode(newAttrib1);
    newElement.setAttributeNode(newAttrib2);
   
View Full Code Here

Examples of org.w3c.dom.Document.createAttribute()

   
    parent.appendChild(newElement);
   
    Element child = factory.createElement("xforms:label");
   
    Attr newAttrib3 = factory.createAttribute("id");
    newAttrib3.setValue(submitType+"_label");
    child.setAttributeNode(newAttrib3);
    child.setTextContent(submitType);
   
    newElement.appendChild(child);
View Full Code Here

Examples of org.w3c.dom.Document.createAttribute()

                DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
                Document doc = docBuilder.parse(filePath);
                Node rootNode = doc.getDocumentElement();
                Node secretNamespaceNode = doc.createAttribute(CipherToolConstants.SECURE_VAULT_NS_PREFIX);
                secretNamespaceNode.setTextContent(CipherToolConstants.SECURE_VAULT_NS);
                rootNode.getAttributes().setNamedItem(secretNamespaceNode);
                Node secretProviderNode = doc.createAttribute(CipherToolConstants.SECURE_VAULT_ATTRIBUTE);
                secretProviderNode.setTextContent(CipherToolConstants.SECRET_PROVIDER);
                Node secretVaultNode;
View Full Code Here

Examples of org.w3c.dom.Document.createAttribute()

                Document doc = docBuilder.parse(filePath);
                Node rootNode = doc.getDocumentElement();
                Node secretNamespaceNode = doc.createAttribute(CipherToolConstants.SECURE_VAULT_NS_PREFIX);
                secretNamespaceNode.setTextContent(CipherToolConstants.SECURE_VAULT_NS);
                rootNode.getAttributes().setNamedItem(secretNamespaceNode);
                Node secretProviderNode = doc.createAttribute(CipherToolConstants.SECURE_VAULT_ATTRIBUTE);
                secretProviderNode.setTextContent(CipherToolConstants.SECRET_PROVIDER);
                Node secretVaultNode;
                if(capitalLetter){
                    secretVaultNode = doc.createElement(CipherToolConstants.SECURE_VAULT_CAPITAL);
                }else {
View Full Code Here

Examples of org.w3c.dom.Document.createAttribute()

                XPathFactory xpf = XPathFactory.newInstance();
                XPath xp = xpf.newXPath();
                XPathExpression xpathEx = xp.compile(xPath);
                Node securedNode = (Node) xpathEx.evaluate(doc.getDocumentElement(), XPathConstants.NODE);
                if(securedNode != null){
                    Node secretAliasNode = doc.createAttribute(CipherToolConstants.SECURE_VAULT_ALIAS);
                    secretAliasNode.setTextContent(secretAlias);
                    securedNode.setTextContent("password");
                    securedNode.getAttributes().setNamedItem(secretAliasNode);
                } else {
                    handleException("Element for secret alias '" + secretAlias + "' can not be found in " +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.