DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
sainath



Group memberships:
Premium Members

Joined: 19 Nov 2004
Posts: 137

Points: 1243

Post Posted: Mon Dec 03, 2018 11:45 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
Hi

In hierarchy stage where can I select the format of the output


I am getting the following one if input is null


<element-name/>

but I want

<element_name>/<element-name>

I tried to change in XSD no luck

please help
eostic

Premium Poster



Group memberships:
Premium Members

Joined: 17 Oct 2005
Posts: 3818

Points: 30782

Post Posted: Mon Dec 03, 2018 12:59 pm Reply with quote    Back to top    

The two are equivalent, assuming you mean <element> </element>

_________________
Ernie Ostic

blogit!
Open IGC is Here!
Rate this response:  
Not yet rated
sainath



Group memberships:
Premium Members

Joined: 19 Nov 2004
Posts: 137

Points: 1243

Post Posted: Mon Dec 03, 2018 1:47 pm Reply with quote    Back to top    

HI

I mean the below format.how can I achieve this using hierarchy stage
<element> </element> ..


thks

Sainath
Rate this response:  
Not yet rated
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42950
Location: Denver, CO
Points: 221500

Post Posted: Mon Dec 03, 2018 8:27 pm Reply with quote    Back to top    

… and Ernie is saying that's not something you need to worry about as those two forms are equivalent.

_________________
-craig

Now I've got that feeling once again, I can't explain; you would not understand
this is now who I am. I have become comfortably numb.
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54514
Location: Sydney, Australia
Points: 295617

Post Posted: Tue Dec 04, 2018 1:07 am Reply with quote    Back to top    

Don't try to force the stage (or any stage) to do what it's not designed to do. There are plenty of XML formatters out there; many of them are free. Use the right tool for the job.

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
Rate this response:  
Not yet rated
eostic

Premium Poster



Group memberships:
Premium Members

Joined: 17 Oct 2005
Posts: 3818

Points: 30782

Post Posted: Tue Dec 04, 2018 4:06 am Reply with quote    Back to top    

This is a good discussion.... XML, as a standard ,supports two similar methods for indicating an "empty" element. <element/> and <element></element> Bot ...

_________________
Ernie Ostic

blogit!
Open IGC is Here!
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours