TIBCO XML Instance: How to Create XML From XSD

One question often rises in minds of the people working in TIBCO BW that how to create a XML Document based on a schema inside TIBCO designer projects? Creation of XML document from an XSD (Schema) is easy in Designer using TIBCO XML Instance activity which is available in the XML Palette of designer.

In this tutorial, you will learn how you can create XML using Instance activity in TIBCO designer based on a Schema definition.

Step 1: Create XML Schema (XSD) in TIBCO Designer

We are going to create an XML Instance based on a Schema definition. Create a new XML Schema by choosing Schema from XML Tools Palette. The schema created is shown in the screenshot below:

TIBCO XML Instance Schema

Step 2: Create XML using Instance activity in TIBCO Designer

Go to XML Tools Palette and add a new Instance activity in the project. Double click on the Instance. XML Instance window will have only root element in it now as shown in the screenshot below:

tibco xml instance window

Now we need to use the Schema that we created in Step 1. On the top of the window, we have Set Schema option available. Click on this and a new Pop up window will open asking you to choose the schema to be used:

tibco xml instance choose schema

Once Schema is chosen, Its elements get populated in the XML Instance window along with the namespaces as you can see in the screenshot below:

tibco xml instance with schema set

 

Just specify the values for the elements (name and age in this case) and click on the apply button:

xml instance values inserted for elements

Go to the source tab and you can see the final XML sample created based on the specified XSD:

tibco xml instance source

 

 

Ajmal Abbasi

Ajmal Hussain Abbasi is Integration Consultant By Profession with 13+ years experience in Integration domain mainly with TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Cloud, TIBCO Flogo, TIBCO Mashery, TIBCO Spotfire, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in various sectors by using his skills in TIBCO Flogo, TIBCO API Management (Mashery), TCI, Tibco Designer, TIBCO Business Studio, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi has experience with MuleSoft ESB as well. Ajmal Abbasi is also experienced in the area of API Management particularly with WSO2 API management platforms. Ajmal Abbasi is also experienced in developing solutions using Core Java and J2EE Technologies. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn - YouTube

One thought on “TIBCO XML Instance: How to Create XML From XSD

  1. Gopi Krishna

    Hi Ajmal

    when Ever I Try to Drop Instance in XML Tools it shows (The resource type you tried to drop, Instance, could not be created) Please Explain the Process How to Drop instance from XML Tools

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *