Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlCursor.beginElement()


      cursor.toNextSibling();

      cursor.toNextToken();
      cursor.insertNamespace( "wsmc", WSMC_NAMESPACE );

      cursor.beginElement( "MakeConnection", WSMC_NAMESPACE );
      cursor.beginElement( "Address", WSMC_NAMESPACE );
      cursor.insertChars( WsaUtils.getNamespace( makeConnectionRequest.getWsaConfig().getVersion() )
          + "/anonymous?id=" + uuid );

      cursor.dispose();
View Full Code Here


      cursor.toNextToken();
      cursor.insertNamespace( "wsmc", WSMC_NAMESPACE );

      cursor.beginElement( "MakeConnection", WSMC_NAMESPACE );
      cursor.beginElement( "Address", WSMC_NAMESPACE );
      cursor.insertChars( WsaUtils.getNamespace( makeConnectionRequest.getWsaConfig().getVersion() )
          + "/anonymous?id=" + uuid );

      cursor.dispose();
View Full Code Here

    xmlGenerator.setIgnoreOptional( !buildOptional );

    XmlObject object = XmlObject.Factory.newInstance();
    XmlCursor cursor = object.newCursor();
    cursor.toNextToken();
    cursor.beginElement( wsdlContext.getSoapVersion().getEnvelopeQName() );

    if( inputSoapEncoded )
    {
      cursor.insertNamespace( "xsi", Constants.XSI_NS );
      cursor.insertNamespace( "xsd", Constants.XSD_NS );
View Full Code Here

      cursor.insertNamespace( "xsd", Constants.XSD_NS );
    }

    cursor.toFirstChild();

    cursor.beginElement( wsdlContext.getSoapVersion().getBodyQName() );
    cursor.toFirstChild();

    if( WsdlUtils.isRpc( wsdlContext.getDefinition(), bindingOperation ) )
    {
      buildRpcRequest( bindingOperation, cursor, xmlGenerator );
View Full Code Here

      {
        if( iface.getSettings().getBoolean( WsdlSettings.ATTACHMENT_PARTS ) )
        {
          XmlCursor c = cursor.newCursor();
          c.toLastChild();
          c.beginElement( part.getName() );
          c.insertAttributeWithValue( "href", part.getName() + "Attachment" );
          c.dispose();
        }
      }
      else
View Full Code Here

      {
        if( iface.getSettings().getBoolean( WsdlSettings.ATTACHMENT_PARTS ) )
        {
          XmlCursor c = cursor.newCursor();
          c.toLastChild();
          c.beginElement( part.getName() );
          c.insertAttributeWithValue( "href", part.getName() + "Attachment" );
          c.dispose();
        }
      }
      else
View Full Code Here

    xmlGenerator.setMultiValues( multiValues );

    XmlObject object = XmlObject.Factory.newInstance();
    XmlCursor cursor = object.newCursor();
    cursor.toNextToken();
    cursor.beginElement( wsdlContext.getSoapVersion().getEnvelopeQName() );

    if( inputSoapEncoded )
    {
      cursor.insertNamespace( "xsi", Constants.XSI_NS );
      cursor.insertNamespace( "xsd", Constants.XSD_NS );
View Full Code Here

      cursor.insertNamespace( "xsd", Constants.XSD_NS );
    }

    cursor.toFirstChild();

    cursor.beginElement( wsdlContext.getSoapVersion().getBodyQName() );
    cursor.toFirstChild();

    if( WsdlUtils.isRpc( wsdlContext.getDefinition(), bindingOperation ) )
    {
      buildRpcResponse( bindingOperation, cursor, xmlGenerator );
View Full Code Here

  {
    // build xop:Include
    XmlCursor c = cursor.newCursor();
    c.removeXmlContents();
    c.toFirstContentToken();
    c.beginElement( XOP_INCLUDE_QNAME );
    c.insertAttributeWithValue( XOP_HREF_QNAME, "cid:" + contentId );
    c.toNextSibling();
    c.removeXml();
    c.dispose();
  }
View Full Code Here

        XmlObject x = XmlObject.Factory.newInstance();
        XmlCursor c = x.newCursor();

        c.toNextToken();

        c.beginElement( "a", "foo.com" );
        c.beginElement( "b", "default.com" );
        c.beginElement( "c", "bar.com" );

        Assert.assertTrue(
            x.xmlText( options ).equals( "<foo:a><b><bar:c/></b></foo:a>" ) );
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.