Package org.w3c.dom

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


  {
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    RecordProgressDecorator dumper = new RecordProgressDecorator(null,output,1,Configuration.getDefaultConfiguration(),false);
    Element augmentElement = dumper.writeAugmentPTA(
        new ProgressDecorator.AugmentPTAData(RestartLearningEnum.restartSOFT,sequence,true,JUConstants.BLUE));
    augmentElement.removeAttribute(StatechumXML.ATTR_KIND.name());
    dumper.topElement.appendChild(augmentElement);dumper.close();
    xmlData = output.toString();

    final LearnerSimulator loader = new LearnerSimulator(new ByteArrayInputStream(xmlData.getBytes()),false);
    loader.config = Configuration.getDefaultConfiguration();
View Full Code Here


      }
    }

    this.ignoreNotification = true;
    if (value == null || value.length() == 0) {
      element.removeAttribute(STYLE);
    }
    else {
      Attr attr = element.getAttributeNode(STYLE);
      if (attr != null) {
        ((IDOMNode) attr).setValueSource(value);
View Full Code Here

      }
    }

    this.ignoreNotification = true;
    if (value == null || value.length() == 0) {
      element.removeAttribute(_styleAttrName);
    }
    else {
      Attr attr = element.getAttributeNode(_styleAttrName);
      if (attr != null) {
        ((IDOMNode) attr).setValueSource(value);
View Full Code Here

          // Undo changes made if tests were previously run without the
          // override.
          int f = rewriteChildElements(testCase, "expected-failure", "failure");
          int e = rewriteChildElements(testCase, "expected-error", "error");

          testCase.removeAttribute("expected");
          subtract(-e, -f, (Element) testCase.getParentNode());

          failures += testCase.getElementsByTagName("failure").getLength();
          errors += testCase.getElementsByTagName("error").getLength();
        }
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");
                }
            }
            n = n.getNextSibling();
        }
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

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

                    Element e = (Element)n;
                    if (e.getLocalName().equals("import")) {
                        e = (Element)n;
                        String loc = e.getAttribute("schemaLocation");
                        if (ids == null || ids.contains(loc)) {
                            e.removeAttribute("schemaLocation");
                        }
                        updateSchemaLocation(e);
                        if (StringUtils.isEmpty(e.getAttribute("namespace"))) {
                            e.setAttribute("namespace", serviceInfo.getInterface().getName()
                                .getNamespaceURI());
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

            while (n != null) {
                if (n instanceof Element) {
                    Element e = (Element)n;
                    if (e.getLocalName().equals("import")) {
                        e = (Element)n;
                        e.removeAttribute("schemaLocation");
                        updateSchemaLocation(e);
                        if (StringUtils.isEmpty(e.getAttribute("namespace"))) {
                            e.setAttribute("namespace", serviceInfo.getInterface().getName()
                                .getNamespaceURI());
                        }
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.