Package org.w3c.dom

Examples of org.w3c.dom.Element.removeAttribute()


    File jobFile=null ;
    try{
      Element updatedJob = updatedJobDoc.getDocumentElement();
      jobName = updatedJob.getAttribute("name");
      String fileName = normalizeJobName(jobName);
      updatedJob.removeAttribute("name");
      jobFile = new File(schedulerCronConfigurationDir, fileName+".job.xml");
      OutputStream fout = new FileOutputStream(jobFile,false);         
          OutputStreamWriter out = new OutputStreamWriter(fout, "UTF-8");
      OutputFormat format = new OutputFormat(updatedJobDoc);
      format.setEncoding("UTF-8");
View Full Code Here


      ByteArrayInputStream bai = new ByteArrayInputStream(submit.get("xml").toString().getBytes());
      InputSource source = new InputSource(bai);

      Document orderDoc = docBuilder.parse(source);
      Element orderElement = orderDoc.getDocumentElement();
      orderElement.removeAttribute("at");
      orderElement.removeAttribute("id");
      orderElement.setAttribute("job_chain", jobChain);
      NodeList orderChildren = orderElement.getChildNodes();
      for (int i = 0; i < orderChildren.getLength(); i++) {
        Node child = orderChildren.item(i);
View Full Code Here

      InputSource source = new InputSource(bai);

      Document orderDoc = docBuilder.parse(source);
      Element orderElement = orderDoc.getDocumentElement();
      orderElement.removeAttribute("at");
      orderElement.removeAttribute("id");
      orderElement.setAttribute("job_chain", jobChain);
      NodeList orderChildren = orderElement.getChildNodes();
      for (int i = 0; i < orderChildren.getLength(); i++) {
        Node child = orderChildren.item(i);
        if (child.getNodeName().equals("run_time")) {
View Full Code Here

      Element dummyParent = getEvents().createElement("events");
      Element remEv = (Element) event.cloneNode(true);
      dummyParent.appendChild(remEv);
      getLogger().debug9("remEv: " + remEv);
      getLogger().debug9("remEv.getParentNode(): " + remEv.getParentNode());
      remEv.removeAttribute("created");
      remEv.removeAttribute("expires");
      removeEvents(remEv.getParentNode().getChildNodes());
    }
    try {
      String curEventSchedulerId = this.getAttributeValue(event, "scheduler_id");
View Full Code Here

      Element remEv = (Element) event.cloneNode(true);
      dummyParent.appendChild(remEv);
      getLogger().debug9("remEv: " + remEv);
      getLogger().debug9("remEv.getParentNode(): " + remEv.getParentNode());
      remEv.removeAttribute("created");
      remEv.removeAttribute("expires");
      removeEvents(remEv.getParentNode().getChildNodes());
    }
    try {
      String curEventSchedulerId = this.getAttributeValue(event, "scheduler_id");
      String curEventRemoteSchedulerHost = this.getAttributeValue(event, "remote_scheduler_host");
View Full Code Here

        Node n = d.getDocumentElement().getFirstChild();
        while (n != null) {
            if (n instanceof Element) {
                Element e = (Element)n;
                if (e.getLocalName().equals("import")) {
                    e.removeAttribute("schemaLocation");
                    updateSchemaLocation(e);
                }
            }
            n = n.getNextSibling();
        }
View Full Code Here

                wsdlNode.setAttribute("xmlns:jaxws", ToolConstants.JAXWS_BINDINGS.getNamespaceURI());
            }
        }

        Element cloneEle = (Element)cloneNode;
        cloneEle.removeAttribute("node");
       
        Element elem = DOMUtils.getFirstElement(cloneNode);
        while (elem != null) {
            Node attrNode = elem.getAttributeNode("node");
            if (attrNode != null) {
View Full Code Here

            throwFault("Signature validation failed", null);
        }
        if (removeSignature) {
            if (!isEnveloping(root)) {
                Element signedEl = getSignedElement(root, ref);
                signedEl.removeAttribute("ID");
                root.removeChild(signatureElement);
            } else {
                Element actualBody = getActualBody(root);
                Document newDoc = DOMUtils.createDocument();
                newDoc.adoptNode(actualBody);
View Full Code Here

      //  A CONSTRAINTS attribute is removed from the childtag but used to add the child into the currrent obj
      //
      Attribute constrnAttr = Attribute.getAttribute(child,Parser.ATTR_CONSTRAINTS);
      Object constrains = null;
      if (constrnAttr != null && layoutMgr != null) {
        child.removeAttribute(Parser.ATTR_CONSTRAINTS); // therefore it won't be used in getSwing(child)
        LayoutConverter layoutConverter = LayoutConverterLibrary.getInstance().getLayoutConverter(layoutMgr.getClass());
        if (layoutConverter != null)
          constrains = layoutConverter.convertConstraintsAttribute(constrnAttr);
      }
View Full Code Here

        }
       
        String filePath = fileIdToPath.get(fileId);
        if (filePath != null) {
          event.setAttribute(ATTR_FILE_PATH, filePath);
          event.removeAttribute(ATTR_FILE_ID);
        } else {
          eventList.removeChild(event);
        }
      }
    }
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.