Package org.xmlpull.v1.builder

Examples of org.xmlpull.v1.builder.XmlDocument


    {
        this.container = new Dsmlv2Container( codec );

        this.container.setGrammar( Dsmlv2ResponseGrammar.getInstance() );

        XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
        factory.setNamespaceAware( true );
        XmlPullParser xpp = factory.newPullParser();

        container.setParser( xpp );
    }
View Full Code Here


    /**
     * @param outputElement
     */
    public void sendingResult(XmlElement outputElement) {
        try {
            XmlDocument document = this.soapFragrance
                    .wrapBodyContent(outputElement);
            XmlElement soapEnvelope = document.getDocumentElement();
            XmlElement soapHeader = soapEnvelope.element(null,
                    XmlConstants.S_HEADER);
            XmlElement soapBody = soapEnvelope.element(null,
                    XmlConstants.S_BODY);
            XmlObject headerObject = null;
View Full Code Here

            // Object top2 = inputWrapper.getRoot();
            // System.out.println(XMLUtil.BUILDER3.serializeToString(top2));
        }

        { // required for my addder ...
            XmlDocument doc = (XmlDocument) (((XmlElement) inputMessage)
                    .getRoot());
            XmlElement env = doc.getDocumentElement();
            XmlElement header = env.element(env.getNamespace(), "Header");
            if (header == null) {
                header = env.newElement(env.getNamespace(), "Header");
                env.addElement(0, header);
            }
View Full Code Here

    }

    public static void sendAsyncResponse(final SoapUtil soapFragrance,
            final XmlElement responseMessage, final WsaMessageInformationHeaders requestWsaHeaders,
            final boolean fault, ApplicationGlobalContext configuration) throws GfacException {
        XmlDocument responseEnvelope = soapFragrance.wrapBodyContent(responseMessage);
        WsaMessageInformationHeaders responseWsaHeaders = new WsaMessageInformationHeaders(
                responseEnvelope);

        // if the response message is a fault message, send it to
        // faultTo instead of replyTo
View Full Code Here

            // Object top2 = inputWrapper.getRoot();
            // System.out.println(XMLUtil.BUILDER3.serializeToString(top2));
        }

        { // required for my addder ...
            XmlDocument doc = (XmlDocument) (((XmlElement) inputMessage).getRoot());
            XmlElement env = doc.getDocumentElement();
            XmlElement header = env.element(env.getNamespace(), "Header");
            if (header == null) {
                header = env.newElement(env.getNamespace(), "Header");
                env.addElement(0, header);
            }
View Full Code Here

        this.outputNodes = GraphUtil.getOutputNodes(this.graph);
    }

    public void create() throws GraphException {

        XmlDocument doc = builder.newDocument();

        XmlElement scufl = doc.addDocumentElement(scuflNS, "scufl");
        scufl.addAttribute("version", "0.2");
        scufl.addAttribute("log", "0");
        XmlElement description = scufl.addElement(scuflNS, "workflowdescription");
        description.addAttribute("lsid", "urn:lsid:net.sf.taverna:wfDefinition:" + UUID.randomUUID());
        description.addAttribute("author", "");
View Full Code Here

    /**
     * @param outputElement
     */
    public void sendingResult(XmlElement outputElement) {
        try {
            XmlDocument document = this.soapFragrance.wrapBodyContent(outputElement);
            XmlElement soapEnvelope = document.getDocumentElement();
            XmlElement soapHeader = soapEnvelope.element(null, XmlConstants.S_HEADER);
            XmlElement soapBody = soapEnvelope.element(null, XmlConstants.S_BODY);
            XmlObject headerObject = null;
            if (soapHeader != null) {
                headerObject = XBeansUtil.xmlElementToXmlObject(soapHeader);
View Full Code Here

            // Object top2 = inputWrapper.getRoot();
            // System.out.println(XMLUtil.BUILDER3.serializeToString(top2));
        }

        { // required for my addder ...
            XmlDocument doc = (XmlDocument) (((XmlElement) inputMessage).getRoot());
            XmlElement env = doc.getDocumentElement();
            XmlElement header = env.element(env.getNamespace(), "Header");
            if (header == null) {
                header = env.newElement(env.getNamespace(), "Header");
                env.addElement(0, header);
            }
View Full Code Here

        this.outputNodes = GraphUtil.getOutputNodes(this.graph);
    }

    public void create() throws GraphException {

        XmlDocument doc = builder.newDocument();

        XmlElement scufl = doc.addDocumentElement(scuflNS, "scufl");
        scufl.addAttribute("version", "0.2");
        scufl.addAttribute("log", "0");
        XmlElement description = scufl.addElement(scuflNS, "workflowdescription");
        description.addAttribute("lsid", "urn:lsid:net.sf.taverna:wfDefinition:" + UUID.randomUUID());
        description.addAttribute("author", "");
View Full Code Here

      return null;
   
    Map property = null;
   
        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( inheritedPageComponentsXML ) );
       
    String propertyXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + propertyName + "']";
   
    if(propertyName.equals("GUFlashImages") || propertyName.equals("MiniArticleShortcuts"))
      this.templateController.getDeliveryContext().addDebugInformation("DEBUG INFO propertyXPath: " + propertyXPath + " (Thread" + Thread.currentThread().getId() + ").\n");
View Full Code Here

TOP

Related Classes of org.xmlpull.v1.builder.XmlDocument

Copyright © 2018 www.massapicom. 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.