TIBCO XML Instance: How to Create XML From XSD

By | April 13, 2014

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 TIBCO Designer using 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 a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

Leave a Reply

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