How to convert table data into xml file using xml output
stage? please explain step by step;

Answer Posted / srinivas

Hi Mukti,

To load the data into XML file first you need import the xml metadata as you expected structure by using the .xsd file or .xml file.
While importing the structure you must careful about the structure and if any value is repeating then define as a key column.

For example in above xml structre child value is diffrent and parents are same for the three rows like below :

CHANGE NAME DATASOURCE ACTION VALUE
ADD MY GSDBDatabase READ 2011
ADD MY GSDBDatabase READ 2012
ADD MY GSDBDatabase READ 2013

in above table VALUE column is unique and other values are same Note: this is taken from XML definition on question i took only 5 columns because of space issue.

In this situation you should define VALUE column as key column in XML output stage.

Job structure should like below:

SourceStage ---->transformer ----> XML output Stage.

Note:Before loading data into XML file you must sort the data other wise order will be change, what ever order you have in source the same order will load in to XML file So these words are mindful.

If you face any problem please let me knoow.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How a source file is populated?

620


Different ways a project can be moved to production ?...example ….export-import and Version control.

1942


Terminate Activity

842


how can we create rank using datastage?what is the meaning of rank?

8193


What is the purpose of pivot stage and types of containers in datastage

617






What is datastage?

652


whom do you report?

1506


How and where you used hash file?

661


How rejected rows are managed in datastage?

928


What is the difference between passive stage and active stage?

829


What is a merge in datastage?

774


Name the third party tools that can be used in datastage?

620


Have you have ever worked in unix environment and why it is useful in datastage?

657


what is 'reconsideration error' and how can i respond to this error and how to debug this

2126


What are the features of datastage flow designer?

639