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 » XML to XML question - one line change

Post new topic  Reply to topic
 XML to XML question - one line change « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Wed Apr 06, 2005 12:11 pm    Post subject: XML to XML question - one line change Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

I have an XML document and I need to use WMQI 2.1 to change only one line in the XML and I'm having trouble with that.

I need to change line:

<ProcessCreditRequest revision="1.1.1" xmlns:ims="http://www.ibm.com/xmlns/ims1">

to line:

<ProcessCreditRequest revision="1.1.1" xmlns="http://www.ibm.com/xmlns/ims1">

Do you know what ESQL statement/s would be able to do that????

Thanks!

-Lori
Back to top
View user's profile Send private message
waugh
PostPosted: Fri Apr 08, 2005 11:49 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

SET OutputRoot = InputRoot; //copies entire message

delete the second attribute you have right now using

DELETE FIELD OutputRoot.XML.ProcessCreditRequest.(XML.Attribute)[2];

add the second attribute again using, check the syntax for below line

SET OutputRoot.XML.ProcessCreditRequest.(XML.Attribute)[2]= 'xmlns="http://www.ibm.com/xmlns/ims1"';
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 » XML to XML question - one line change
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.