Header repeatition in the XML file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sunita
Participant
Posts: 4
Joined: Wed Dec 16, 2009 12:36 am
Location: Bangalore

Header repeatition in the XML file

Post by sunita »

Hi ALL,
We are generating a XML file reading the data from the oracle database and using the XML output stage in the data stage. we are importing the meta data from the XSD which has one root element and has 2 child elements which are defined as choice in the xSD. We are importing both the choice elements.
The problem is we are getting the XML generated with the repetition of headers in spite of selecting the non key element as the key other than the header elements.
Is there any option or way to avoid the header repetition.

Thanks.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What has this to do with the DSXchange site/forum?
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not a thing, so off we go to (hopefully) the appropriate place. Hang on!

sunita, can you edit your post to add the 'Required' information, please?
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

How is it not a dsXchange item? They are using ds to build xml..... isn't that a good thing? :)


.....hard to say exactly what your issue is, but put the "key" on an element (column) that is on the lowest level repeating node. It's usually and incorrect position of the "key" [it doesn't really mean a 'key' ...it simply indicates the repeating node] that results in duplicate headers and a not well formed document.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply