XML Output Stage - Help

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
scooper1004
Participant
Posts: 2
Joined: Thu Mar 10, 2011 11:27 am

XML Output Stage - Help

Post by scooper1004 »

I'm using the XML Output stage to create XML, and it's adding this tag to the beginning of the XML...

<?xml version="1.0" encoding="UTF-8"?>

How do I stop that?

Also, if my values in the xml contain "<" or ">" it is removing them, and changing them to things like "<" and ">", which I don't want it to do. Is there a way to turn that off as well?
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

There's a check box "generate chunk" which will leave out the header and > etc is required for the xml to be valid. Content inside of an element that contains such characters has to be "escaped" in order for another xml parser to properly read the content.

Look at your final xml document in your browser...it will automatically perform the conversion back to > and <.

Ernie
Ernie Ostic

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