ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping Node

Post new topic  Reply to topic
 Mapping Node « View previous topic :: View next topic » 
Author Message
harry123
PostPosted: Tue Mar 05, 2013 5:16 pm    Post subject: Mapping Node Reply with quote

Newbie

Joined: 30 Oct 2012
Posts: 9

Hi,

I have a flow which maps an XML message to CSV using WMB v8.

My Model is as below.

SampleModel
sequence
Red
Sequence
field1
field2
Blue
sequence
field1
field2
Green
sequence
field1
field2

My I/P XML is as below.

<Red><field1>R1</field1><field2>R2</field2></Red>
<Blue><field1>B1</field1><field2>B2</field2></Blue>
<Green><field1>G1</field1><field2>G2</field2></Green>
<Red><field1>R3</field1><field2>R4</field2></Red>
<Blue><field1>B3</field1><field2>B4</field2></Blue>
<Green><field1>G3</field1><field2>G4</field2></Green>

the O/P CSV I'm getting after mapping is as below.

R1,R2
R3,R4
B1,B2
B3,B4
G1,G2
G3,G4

but I'm supposed to get my O/P CSV as

R1,R2
B1,B2
G1,G2
R3,R4
B3,B4
G3,G4

Can someone please help me out.

Thanks,
Harry
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Mar 05, 2013 11:00 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

What methods have you tried? and what were the results?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Mar 05, 2013 11:48 pm    Post subject: Re: Mapping Node Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

This
Code:
<Red><field1>R1</field1><field2>R2</field2></Red>
<Blue><field1>B1</field1><field2>B2</field2></Blue>
<Green><field1>G1</field1><field2>G2</field2></Green>
<Red><field1>R3</field1><field2>R4</field2></Red>
<Blue><field1>B3</field1><field2>B4</field2></Blue>
<Green><field1>G3</field1><field2>G4</field2></Green>

is that (your desired output):
Code:
R1,R2
B1,B2
G1,G2
R3,R4
B3,B4
G3,G4


How did you manage to mangle it (with the mapping node)?:
Code:
R1,R2
R3,R4
B1,B2
B3,B4
G1,G2
G3,G4

There is no mapping that you have to do.
Just parse it in with XMLNSC and put it out with a flat-file-message-set (probably "TDS").
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Mar 06, 2013 1:18 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You're on v8, so I will assume that you are using DFDL to output the CSV.

I think I can guess at what's happening, but your description of the model is not detailed enough. Please can you post ( using code tags to make it readable, please ) the actual xsd.
Back to top
View user's profile Send private message
harry123
PostPosted: Wed Mar 06, 2013 7:17 am    Post subject: Reply with quote

Newbie

Joined: 30 Oct 2012
Posts: 9

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping Node
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.