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 » reparsing xml in string field

Post new topic  Reply to topic
 reparsing xml in string field « View previous topic :: View next topic » 
Author Message
Lillian
PostPosted: Fri Feb 22, 2008 3:17 am    Post subject: reparsing xml in string field Reply with quote

Centurion

Joined: 15 Apr 2002
Posts: 102

I have very large complex xml message that is wrapped into a string field(Response). How can I reparse it so i can access fields/tags within the fieldwithout doing a character search. below is a snippet if the current message.




(0x01000010):XML = (
(0x01000000):Response = (
(0x02000000): = '<?xml version="1.0" encoding="UTF-8"?>
<Message systemId="localhost" applicationId="SRS" timeStamp="2008-02-22T11:43:46.763" userId="" moduleId="DPE|CI" componentId="java.
lang.Object" noNamespaceSchemaLocation="Broadcast_0.32.xsd"><CrfActionGroup/><COMMAND><AgreementBroadcastMessage><LibertyAgreementBr
oadcastMessage paramNo="1"><AgreementBroadcast..........
Back to top
View user's profile Send private message
fschofer
PostPosted: Fri Feb 22, 2008 4:14 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

You can cast the string to a BLOB and then use the CREATE statement with the PARSE option to convert the BLOB to a XML tree stored in the Environment

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ak04950_.htm

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Feb 22, 2008 4:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Please don't use the XML parser.

Please use XMLNS or XMLNSC.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Lillian
PostPosted: Wed Feb 27, 2008 5:43 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2002
Posts: 102

Thank you. had alittle trouble with create statement but placing an rcd node( with xmlns as parser) after casting to blob did the trick.
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 » reparsing xml in string field
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.