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 » Help on defining message set

Post new topic  Reply to topic
 Help on defining message set « View previous topic :: View next topic » 
Author Message
Mohit Gupta
PostPosted: Wed Nov 10, 2004 1:37 am    Post subject: Help on defining message set Reply with quote

Apprentice

Joined: 16 Sep 2004
Posts: 34

Hi ,

If i have an incoming message in the CSV format
e.g. 1000,FK,2004,06,08/06/04,02/07/04,1328456AUD,AUD,3106,AUD,135937.2,135937.2,135937.2,135937.2,,,,
1000,FK,2004,06,08/06/04,02/07/04,2113360AUD,AUD,3106,AUD,-135937.2,-135937.2,-135937.2,-135937.2,,,,
....
....

and i want to work by using XML domain and i would like the data in xml format like this...

<File>
<RowSet setType="Managed">
<Row>
<Company>1000</Company>
<Currency>USD</Currency>
....
....
</Row>
<Row>
<Company>1000</Company>
<Currency>USD</Currency>
....
....
</Row>
......
......
</RowSet>
<RowSet setType="UnManaged">
<Row>
<Company>2000</Company>
<Currency>USD</Currency>
....
....
</Row>
<Row>
<Company>2000</Company>
<Currency>USD</Currency>
....
....
</Row>
......
......
</RowSet>
<RowSet setType="Managed">
<Row>
<Company>1000</Company>
<Currency>USD</Currency>
....
....
</Row>
<Row>
<Company>1000</Company>
<Currency>USD</Currency>
....
....
</Row>
......
......
</RowSet>
.........
.........
</File>

So how do i create my message definition....whenever i tried to add attribute on RowSet i got an error Attribute cannot be defined on the All Elements Delimited set.

Please help me how to achieve such a message format

Cheers,
Mohit Gupta
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Nov 10, 2004 3:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Define the members of RowSet as elements, instead of as attributes. On the XML physical properties for each element, set the 'Render' property to 'Attribute'.
Back to top
View user's profile Send private message
Mohit Gupta
PostPosted: Wed Nov 10, 2004 5:13 am    Post subject: Reply with quote

Apprentice

Joined: 16 Sep 2004
Posts: 34

Thanks a lot for the help !
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 » Help on defining message set
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.