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 » Inserting XML element at certain position?

Post new topic  Reply to topic
 Inserting XML element at certain position? « View previous topic :: View next topic » 
Author Message
klabran
PostPosted: Wed Feb 25, 2004 3:24 pm    Post subject: Inserting XML element at certain position? Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

How would I insert an xml element at the beginning of the message or say the 4th item(element/tag) in a message?

<CITATION>
<INSERT TAG HERE>???
<CITNUM/>
<DATE/>
<NAME/>
<INSERT TAG HERE>???
<CHARGES>
<CHARGE/>
</CHARGES>
</CITATION>

Adds to end of message-> SET "OutputRoot"."XML"."CITATION"."CITPREFIX" = 'C';

What is the code for inserting to specific order in message?

Thanks,

Kevin
Back to top
View user's profile Send private message Visit poster's website
EddieA
PostPosted: Wed Feb 25, 2004 3:42 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Take a look at the CREATE FIELD statement.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
klabran
PostPosted: Wed Feb 25, 2004 3:51 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

Thanks! Will Do.
Back to top
View user's profile Send private message Visit poster's website
klabran
PostPosted: Wed Feb 25, 2004 4:16 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

Create at beginning of message -> CREATE FIRSTCHILD OF OutputRoot.XML.CITATION DOMAIN('XML') NAME 'CITPREFIX' VALUE 'C';

Thanks for the Hint Eddie.
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 » Inserting XML element at certain position?
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.