XML Parsing Query - Special Characters

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
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Whatever tool is writing your xml from Netezza needs to escape it. It should be &lt. If it isn't, that's the problem.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

First thing to do is to be sure and check the string in your .xml from Oracle and see what the character value "really" is. Is it >> or is it an escaped edition --- meaning: Don't look at it in your browser or other xml aware tool....look at the xml in a text editor, and preferably, something that can view the data in hex so that you can be certain.

Then....review the tooling (is it DataStage?) that is responsible for "when same CLOB field goes to Netezza". What is "it" doing?

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
SachinCho
Participant
Posts: 45
Joined: Thu Jan 14, 2010 1:23 am
Location: Pune

Post by SachinCho »

Hi Ernie,
This is how string it looks in notepad++
Image

Oracle database it looks like as below
Image

If I convert the string to hex in text editor it looks like
Image

Yes it is moving from Oracle to Netezza via Datastage. So will check how it is getting transformed to below string in Netezza
Image

Thanks,
Sachin
Sachin C
Post Reply