parsing xml( in a table column)

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
reddy12
Participant
Posts: 99
Joined: Tue Aug 08, 2006 9:34 pm

parsing xml( in a table column)

Post by reddy12 »

experts,

i have a question.
i have a table in which a column has xml tag/message.

is it possible to parse the xml message/tag to columns???

appreciate any help.

Regards.
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

Yes. There is nothing special about the source of the XML into the XMLInput Stage. Read the column that contains the XML into the XMLInput and parse as normal.
reddy12
Participant
Posts: 99
Joined: Tue Aug 08, 2006 9:34 pm

Post by reddy12 »

throbinson
thanks for the reply.
Is it just that get the column in which i have the xml tag and parse it in xml input stage???

thanks
throbinson
Charter Member
Charter Member
Posts: 299
Joined: Wed Nov 13, 2002 5:38 pm
Location: USA

Post by throbinson »

You can do both. The XMLInput Stage can be a pass through for non-XML fields. Identify the XML field as a being of Data element XML.
Why not try it? Your box will not explode.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Are you su<KA-BLAM!> Dang.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply