Data type is the objects that are often under change during the implementation of XI / PI project due to the business requirement change or technical design change. If the changes are just based on the existing structure then they can be easily handled. For example, add additional elements or sub-elements. However I came cross chances that I need to add additional level in root, or insert additional level in the middle of the structure, in this case, my previous data type can not be re-used, I have to build new data type from scratch. If the data type contains 100 elements or more, we can imagine the time wasted on rebuilding them: each element added into data type need performing a couple of steps.
As we all know the data type we defined is nothing but a XSD schema file. So I just wonder if there is new way to build the schema file. As we stick to MS application all the time and familiar with its editing features like drag & drop, copy & paste etc. Can we just take advantage of those MS features? The idea encouraged me to explore the possibility, eventually, I came up a MS Excel based tool which I called it " Data Type Generator".
Now let us take a look at how Data Type Generator look like, and how it can be used to generate data type xsd file.
Maintaining datum based on certain rules is important for error-free data type generating process. Let us exam how the datum are maintained in "Data Type Generator" by taking an example of employee data type. Suppose I would like to create a data type to reflect a structure shown in Fig 1 below:
Fig.1 Data Type Generator Over View

There are three buttons on right side of the spread sheet,:
Fig.2: Check Readiness Button:
Fig 3. Generate DT Button
Fig 4. "Generate DT Button: xsd file is created
Now let us take a look at how incompliances are reported by clicking "Readiness Check" button:
Incompliance 1, no xsd schema file specified
A pop up window will be shown by clicking "Check Readiness" button if there is no schema file name specified in Cell C1. In our case, we got following screenshot when we leave cell C1 blank. See Fig. 5.
Fig 5: Incompliance 1
Incompliance 2, the child node does not have 4 leading space
In such incompliance situation, by clicking "Check Readiness" button, you will see a incompliance report pop up window.
in our case, we have 5 leading space in element "Fname" comparing with its parent node "Employee". Plus incompliance 1, then we got following screenshot by clicking "Check Readiness" button. See Fig.6.
Fig.6: Incompliance 1 and 2
Incompliance 3, Node that has child nodes is typed.
In our case, Element "Employee" has child nodes, but there is "xsd:string" in the type column. Plus incompliance 1 and 2, therefore the incompliance reporting pop up window is demonstrated in Fig.7.
Fig.7 Incompliance 1, 2 and 3

Fig.8: Import xsd file

Fig. 9 Data Type created