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 » Asiselement

Post new topic  Reply to topic
 Asiselement « View previous topic :: View next topic » 
Author Message
WBI_user
PostPosted: Mon Sep 10, 2007 7:15 am    Post subject: Asiselement Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

I received some flow from another site which I need to mdified and run on my borker. The flow is using XML.Asiselement to handle special characters inside the XML output message. One example is to embed an XML message inside the XML ouput .
Set OutputRoot.XML.My_XML_message.(XML.Asiselement) = <A>.....</A>

I think the esql was from a 2.1 system.
I search the V6 esql manual , asiselemet is no longer there. So I don't think I can use XMLNSC.Asiselement.
One thing I can do , I think is to use CData which I know XMLNSC supports. But CData will put ![CDATA.] to the output.
Is Asiselement gone ? Anyway to just output the XML message without any addition data such as ![CDATA
Back to top
View user's profile Send private message
WBI_user
PostPosted: Mon Sep 10, 2007 7:30 am    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Sorry, I was posting base on my memory. I just received the code. It is Asiselementcontent and not asiselement. AsiselementContent is described in the Info center. I'll do soem reading first to see if AsisElementContent will solve my problem.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 10, 2007 4:03 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If the downstream application uses a proper XML processor, nobody will know or care whether or not your generated XML contains a CDATA section. Why does it matter in your case?
Back to top
View user's profile Send private message
WBI_user
PostPosted: Tue Sep 11, 2007 5:31 am    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Thanks for the response Kimbert.
The XML message output will be viewed by the end user. This is more for cosmetic. They prefer not to see the ![CDATA[.
BTW is there any specific advantage of using CData over Asis ElementContent if all I want is just let the user see the output message ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Sep 11, 2007 5:41 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

And how will the receiving application display this 'XML message output'? It will probably ask an XML parser to retrieve the 'value' of the element. At that point, the XML parser will remove the [CDATA] markup and return the value of the element - minus the [CDATA] syntax.
Back to top
View user's profile Send private message
WBI_user
PostPosted: Tue Sep 11, 2007 12:51 pm    Post subject: Reply with quote

Partisan

Joined: 07 Aug 2001
Posts: 386

Fior now they just use RFHUTIL (ih03) to view the message on the queue. This is not imprtant. Just like to see if I can help with minimum effort. For example a quick change of ESQL from Cdatasection to AsisElementContent. If this cannot be done or not recommended, I can just forget it.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 11, 2007 1:00 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If they are smart enough to use RFHUTILC, then they are smart enough to ignore CDATA.
_________________
I am *not* the model of the modern major general.
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 » Asiselement
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.