XML Parse Issue

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
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

XML Parse Issue

Post by dssiddu »

Hello all

The below example explains the issue

XML Structure like as below

ns0:Element1
ns1:Element2< Elements3,4,5>
ns1;Element2<Elements3,4,5>

Issues :
1)when we import in Datastage to XML input stage will get ??? for ns1 in the xpaths.
2) when we run it we wont get the values for Elements3,4,5
3) Even if provide the ns1 in the xpath still not giving the values for Elements3,4,5

Could you please light on this ...

Thanks
greggknight
Premium Member
Premium Member
Posts: 120
Joined: Thu Oct 28, 2004 4:24 pm

Post by greggknight »

:idea:
Did you creat a schema?
Did you read the documentation on using the object and how to configure it?
Did you define your repeating element?
:idea:
"Don't let the bull between you and the fence"

Thanks
Gregg J Knight

"Never Never Never Quit"
Winston Churchill
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

Post by dssiddu »

Hi Greg

Did you creat a schema?-Yes
Did you read the documentation on using the object and how to configure it?
No idea how to config apart from the xpaths?

Did you define your repeating element? --Yes
greggknight
Premium Member
Premium Member
Posts: 120
Joined: Thu Oct 28, 2004 4:24 pm

Post by greggknight »

"Don't let the bull between you and the fence"

Thanks
Gregg J Knight

"Never Never Never Quit"
Winston Churchill
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Gregg, thanks for posting that link. Question for which I'm looking for the briefest answer (I'll do my own detail work): I began using the XML stages under 7.5.2 recently. Is there a highest-level view of changes from that to 8.5? My shop is not likely to get to 8.x very soon, so I'm just looking for a starting point. Thanks.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

The XML Stages are fairly consistent from release 6.5, when they were available as an add-on, up until 8.1, with FP1. The behavior, usage, features remain mostly constant, although in 8.0 there were numerous anomalies --- you need at least 8.1 with FP1 to have things fully operational in the 8.x environment.

Those Stages I refer to are the second implementation of xml support in DataStage, and generally referred to as xml pack 2.

They exist "as is" in 8.5 also.....but....

In 8.5 we now ALSO have a new xml stage (lovingly referred to as xmlPack3) --- wholly new approach to working with XML...it's a hierarchical editor packed inside of the new xml Stage with a lot more power...it can handle any size xml, it is much faster, and it manipulates hierarchical data much easier --- which is critical for construction of complex xml documents. It is already taking DataStage in some new directions regarding xml processing.

There is lots of new stuff for all of us to learn. ; )

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

Post by dssiddu »

Hello

Thanks a ton for your info
I am using the Datastage ver 8.1 with fp1 but still my issue not resolved

I have good schema and name space but I tried with name space and without name space also but no luck

/ns0:Element1/ns1:Element2...


Thanks
Post Reply