Invalid Characters in XML

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
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Invalid Characters in XML

Post by koolsun85 »

I am getting the following characters in generated XML.
At the end of tag />
At the beginning of tag <
I am assuming these are > and < but can we replace them as they are supposed to be?

Also, I have this coming for every field.
<?xml version="1.0"

Thanks to best practices document, I am able to get the repetitive elements work, but with the above described issues.

As described in the document, I am creating individual XMLs and joining them with Parent, and able to create an erroneous XML.

Thanks in advance.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Use the Data Element of "XML" on the input link of the xmlOutput Stage. That tells the Stage not to "escape" the xml tag characters.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
koolsun85
Participant
Posts: 36
Joined: Tue Jun 15, 2010 3:30 pm
Location: Tampa

Post by koolsun85 »

It worked .... Thanks a ton...
Post Reply