xml formatting

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
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

xml formatting

Post by Nagaraj »

Hi Folks,

Can anyone tell me how do i define a Tag which would start and end in this way? Also it would be useful if i understand what it means :)

<measure-group ID="X">
</measure-group>


Thanks
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Assuming you are talking about the xmlOutput Stage, the column carrying the value "X" for ID will have a Description property on the input link that looks like:

.../.../---for all the upper parts of the xml hierarchy---/measure-group/@ID

The xml metadata importer will generate that for you just fine if you import this particular attribute [ID] for your table def.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Ernie

No there is no column(ID) like that required, all they are looking for is the Tag should have those

<measure-group ID="X">
</measure-group>

when defining the tag on a particular column there is only one way of doing it,
how i can get it as above.

right now i am getting

<measure-group>
</measure-group>

Needed

<measure-group ID="X">
</measure-group>
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Had to write a post script to change it.
In the mean time you can tell me how to do it.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

He did.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

Perfect.......gr8 thanks ernie and Chulet.

now i will change the thread to resolved :D :idea: :idea:
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

For the benefit of future readers, I may not have been explicit enough --- worst case you just create a fake column called "myID" and put the value "X" into it (in an upstream transformer), and then follow the instructions above. I'll assume that's what you did. ; )
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

yes ernie thats what i did. marking this topic as resolved.
Post Reply