Examples of DOMOutputter


Examples of org.jdom.output.DOMOutputter

        org.w3c.dom.Document doc = new DOMOutputter().output(element.getDocument());
        assertXPathEquals(xpath, value, doc);
    }
   
    protected NodeList assertValid(String xpath, Element element) throws Exception {
        org.w3c.dom.Document doc = new DOMOutputter().output(element.getDocument());
       
        return assertValid(xpath, doc);
    }
View Full Code Here

Examples of org.jdom.output.DOMOutputter

       
        return assertValid(xpath, doc);
    }

    protected void assertInvalid(String xpath, Element element) throws Exception {
        org.w3c.dom.Document doc = new DOMOutputter().output(element.getDocument());
       
        assertInvalid(xpath, doc);
    }
View Full Code Here

Examples of org.jdom.output.DOMOutputter

                    if (!nsMap.containsValue(n.getURI())) {
                        nsMap.add(n.getPrefix(), n.getURI());
                    }
                }

                org.w3c.dom.Document schema = new DOMOutputter().output(new Document(e));

                for (ServiceInfo si : s.getServiceInfos()) {
                    SchemaCollection col = si.getXmlSchemaCollection();
                    col.setNamespaceContext(nsMap);
                    XmlSchema xmlSchema = addSchemaDocument(si, col, schema, entry.getKey());
View Full Code Here

Examples of org.jdom.output.DOMOutputter

        Element root = new Element("root");
        org.jdom.Document wsdl = new org.jdom.Document(root);
        type.writeSchema(root);

        Document doc = new DOMOutputter().output(wsdl);
        addNamespace("xsd", SOAPConstants.XSD);
        assertValid("//xsd:simpleType[@name='test']/xsd:restriction[@base='xsd:string']", doc);
        assertValid("//xsd:restriction[@base='xsd:string']/xsd:enumeration[@value='VALUE1']", doc);
        assertValid("//xsd:restriction[@base='xsd:string']/xsd:enumeration[@value='VALUE2']", doc);
    }
View Full Code Here

Examples of org.jdom.output.DOMOutputter

      }

      d.addContent(newRoot);
      newRoot.addContent(e.cloneContent());

      return new DOMOutputter().output(d).getDocumentElement();
    }
    catch (JDOMException e1) {
      throw new RuntimeException(e1);
    }
  }
View Full Code Here

Examples of org.jdom.output.DOMOutputter

                    }
                }
               
                col.setNamespaceContext(nsMap);

                org.w3c.dom.Document schema = new DOMOutputter().output(new Document(e));

                for (ServiceInfo si : s.getServiceInfos()) {
                    SchemaInfo info = new SchemaInfo(si, entry.getKey());

                    info.setElement(schema.getDocumentElement());
View Full Code Here

Examples of org.jdom.output.DOMOutputter

                    child.detach();
                   
                    if (child.getChildren().size() > 0)
                    {
                        Document inputDoc = new Document(child);
                        org.w3c.dom.Document doc = new DOMOutputter().output(inputDoc);
                       
                        Schema uee = new SchemaImpl();
                        uee.setElement((org.w3c.dom.Element) doc.getDocumentElement());
                        uee.setRequired(Boolean.TRUE);
                        uee.setElementType(SCHEMA_QNAME);
View Full Code Here

Examples of org.jdom.output.DOMOutputter

                    nsMap.add(n.getPrefix(), n.getURI());
                }
               
                col.setNamespaceContext(nsMap);

                org.w3c.dom.Document schema = new DOMOutputter().output(new Document(e));

                for (ServiceInfo si : s.getServiceInfos()) {
                    SchemaInfo info = new SchemaInfo(si, entry.getKey());

                    info.setElement(schema.getDocumentElement());
View Full Code Here

Examples of org.jdom.output.DOMOutputter

        Element root = new Element("root");
        org.jdom.Document wsdl = new org.jdom.Document(root);
        type.writeSchema(root);

        Document doc = new DOMOutputter().output(wsdl);
        addNamespace("xsd", XmlConstants.XSD);
        assertValid("//xsd:simpleType[@name='test']/xsd:restriction[@base='xsd:string']", doc);
        assertValid("//xsd:restriction[@base='xsd:string']/xsd:enumeration[@value='VALUE1']", doc);
        assertValid("//xsd:restriction[@base='xsd:string']/xsd:enumeration[@value='VALUE2']", doc);
    }
View Full Code Here

Examples of org.jdom2.output.DOMOutputter

   *             thrown if the W3C DOM document for the feed could not be created.
   *
   */
  public org.w3c.dom.Document outputW3CDom(WireFeed feed) throws IllegalArgumentException, FeedException {
    Document doc = outputJDom(feed);
    DOMOutputter outputter = new DOMOutputter();
    try {
      return outputter.output(doc);
    } catch (JDOMException jdomEx) {
      throw new FeedException("Could not create DOM", jdomEx);
    }
  }
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.