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 » Insert repeat XML field into Multiple rows

Post new topic  Reply to topic
 Insert repeat XML field into Multiple rows « View previous topic :: View next topic » 
Author Message
Bell Hung
PostPosted: Sun May 12, 2002 7:58 pm    Post subject: Insert repeat XML field into Multiple rows Reply with quote

Newbie

Joined: 05 Dec 2001
Posts: 5
Location: Taiwan

Hello all :

How can I insert repeating XML fields into multiple rows in DataInsert node. I've saw that DataInsert node can insert one or multiple rows into DB. But when I mapping XML field into ODBC row , only one record inserted into DB.

For example , I have one message InputRoot.XML.F1[1],F1[2]
and want to inser into table Field with two different rows.

Should I use DataInsert node or Database node to handle this request ?
Back to top
View user's profile Send private message MSN Messenger
kirani
PostPosted: Mon May 13, 2002 4:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Bell,
If you want to use DataInsert node, you will have to use some kind of "loop" (if not using WMQI 2.1), a combination of Filter node, 2 Compute Nodes and single DataInsert node. I wouldn’t recommend this.

With WMQI 2.1, you can make use of propagate command to send repeating xml elements as single XML message to datainsert node.

Finally, you can use Database node instead, with a FOR/WHILE loop to traverse XML tree and then insert repeating XML elements into database. This will work with MQSI2.0.x/WMQI2.1.

Hope this helps.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Insert repeat XML field into Multiple rows
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.