Root Element 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
sarathchandrakt
Participant
Posts: 50
Joined: Fri Aug 29, 2014 1:32 pm
Location: Mumbai

Root Element in XML

Post by sarathchandrakt »

Hi,

I am taking an XML as input in an XML stage. Then I parsed it, validated it and composed it. But there is a discrepency in Source and Target.

My input root element looks like this,

<ROOTELEMENT xmlns:soapenc="http://xmlsoap.org/soap/encoding" xmlns:wsdl="http://xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

But my Target root element looks like this,

<ROOTELEMENT>

How to eliminate this discrepency?

Thanks in advance.
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

Hi,
The above description in your xml is a namespace , which has to be declared under namespace declaration tab under xml input stage

I don't think that will appear under your Target.
By the way what is your target ? another xml ?

Thanks
major
Post Reply