XML quote remove

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

XML quote remove

Post by shrey3a »

Hi,

I'm getting the row wise i/p as XML string

<main><a>ABC </a><b>DEF</b> </main>
<main><a>GHI</a><b>JKL</b> </main>

need to break in to format as below

ABC DEF
GHI JKL

Basically to remove the XML embedding i.e. <> </>


Regards,
Munish
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

2 Options
1.) Describe the whole record as one field and perform operations to extract the required area - something like
Field(Field(Full_Record,'>', 2), '<', 1)
2.) Use XML Reader to to scan through the messages and produce the data.
Post Reply